⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175177 in webkit


Ignore:
Timestamp:
Oct 24, 2014, 1:59:58 PM (12 years ago)
Author:
Alan Bujtas
Message:

Replace INT_MIN/MAX / kFixedPointDenominator with intMin/MaxForLayoutUnit.
https://bugs.webkit.org/show_bug.cgi?id=138047

Reviewed by Andreas Kling.

No change in functionality.

  • css/CSSPrimitiveValue.cpp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175175 r175177  
     12014-10-24  Zalan Bujtas  <zalan@apple.com>
     2
     3        Replace INT_MIN/MAX / kFixedPointDenominator with intMin/MaxForLayoutUnit.
     4        https://bugs.webkit.org/show_bug.cgi?id=138047
     5
     6        Reviewed by Andreas Kling.
     7
     8        No change in functionality.
     9
     10        * css/CSSPrimitiveValue.cpp:
     11
    1122014-10-24  Alexey Proskuryakov  <ap@apple.com>
    213
  • trunk/Source/WebCore/css/CSSPrimitiveValue.cpp

    r173570 r175177  
    6262// Max/min values for CSS, needs to slightly smaller/larger than the true max/min values to allow for rounding without overflowing.
    6363// Subtract two (rather than one) to allow for values to be converted to float and back without exceeding the LayoutUnit::max.
    64 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2;
    65 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2;
     64const int maxValueForCssLength = intMaxForLayoutUnit - 2;
     65const int minValueForCssLength = intMinForLayoutUnit + 2;
    6666
    6767static inline bool isValidCSSUnitTypeForDoubleConversion(CSSPrimitiveValue::UnitTypes unitType)
Note: See TracChangeset for help on using the changeset viewer.