Title: [184454] releases/WebKitGTK/webkit-2.4/Source/WebCore
- Revision
- 184454
- Author
- [email protected]
- Date
- 2015-05-18 03:23:09 -0700 (Mon, 18 May 2015)
Log 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:
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.4/Source/WebCore/ChangeLog (184453 => 184454)
--- releases/WebKitGTK/webkit-2.4/Source/WebCore/ChangeLog 2015-05-18 10:19:43 UTC (rev 184453)
+++ releases/WebKitGTK/webkit-2.4/Source/WebCore/ChangeLog 2015-05-18 10:23:09 UTC (rev 184454)
@@ -1,3 +1,14 @@
+2014-10-24 Zalan Bujtas <[email protected]>
+
+ 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:
+
2014-10-29 Zalan Bujtas <[email protected]>
Remove invalid float from RootInlineBox.
Modified: releases/WebKitGTK/webkit-2.4/Source/WebCore/css/CSSPrimitiveValue.cpp (184453 => 184454)
--- releases/WebKitGTK/webkit-2.4/Source/WebCore/css/CSSPrimitiveValue.cpp 2015-05-18 10:19:43 UTC (rev 184453)
+++ releases/WebKitGTK/webkit-2.4/Source/WebCore/css/CSSPrimitiveValue.cpp 2015-05-18 10:23:09 UTC (rev 184454)
@@ -55,8 +55,8 @@
// Max/min values for CSS, needs to slightly smaller/larger than the true max/min values to allow for rounding without overflowing.
// Subtract two (rather than one) to allow for values to be converted to float and back without exceeding the LayoutUnit::max.
-const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2;
-const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2;
+const int maxValueForCssLength = intMaxForLayoutUnit - 2;
+const int minValueForCssLength = intMinForLayoutUnit + 2;
static inline bool isValidCSSUnitTypeForDoubleConversion(CSSPrimitiveValue::UnitTypes unitType)
{
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes