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

Changeset 175924 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 7:38:44 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r175177 - 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:
releases/WebKitGTK/webkit-2.6/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog

    r175923 r175924  
     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-29  Alexey Proskuryakov  <ap@apple.com>
    213
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/css/CSSPrimitiveValue.cpp

    r173570 r175924  
    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.