Ignore:
Timestamp:
Jan 28, 2011, 9:02:31 PM (15 years ago)
Author:
Simon Fraser
Message:

2011-01-28 Simon Fraser <Simon Fraser>

Reviewed by Gavin Barraclough.

Add various clampToInt() methods to MathExtras.h
https://bugs.webkit.org/show_bug.cgi?id=52910

Use clampToInteger() from MathExtras.h

  • css/CSSParser.cpp: (WebCore::CSSParser::parseCounter):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r77044 r77045  
     12011-01-28  Simon Fraser  <[email protected]>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Add various clampToInt() methods to MathExtras.h
     6        https://bugs.webkit.org/show_bug.cgi?id=52910
     7       
     8        Add functions for clamping doubles and floats to valid int
     9        ranges, for signed and positive integers.
     10
     11        * wtf/MathExtras.h:
     12        (clampToInteger):
     13        (clampToPositiveInteger):
     14
    1152011-01-28  Sheriff Bot  <[email protected]>
    216
Note: See TracChangeset for help on using the changeset viewer.