Title: [129982] trunk/Source/WTF
Revision
129982
Author
e...@chromium.org
Date
2012-09-29 10:43:42 -0700 (Sat, 29 Sep 2012)

Log Message

Enable SATURATED_LAYOUT_ARITHMETIC for chromium
https://bugs.webkit.org/show_bug.cgi?id=95053

Reviewed by Abhishek Arya.

Enable the SATURATED_LAYOUT_ARITHMETIC flag for the chromium port.
This changes the behavior of FractionalLayoutUnit to clamp to the
max or min value instead of overflowing.

This may very well impact performance so the current plan is to enable
it for a couple of hours to a day to collect performance data and then
disable it again until we've had a chance to review the perf data.

* wtf/Platform.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (129981 => 129982)


--- trunk/Source/WTF/ChangeLog	2012-09-29 16:03:02 UTC (rev 129981)
+++ trunk/Source/WTF/ChangeLog	2012-09-29 17:43:42 UTC (rev 129982)
@@ -1,3 +1,20 @@
+2012-09-29  Emil A Eklund  <e...@chromium.org>
+
+        Enable SATURATED_LAYOUT_ARITHMETIC for chromium
+        https://bugs.webkit.org/show_bug.cgi?id=95053
+
+        Reviewed by Abhishek Arya.
+
+        Enable the SATURATED_LAYOUT_ARITHMETIC flag for the chromium port.
+        This changes the behavior of FractionalLayoutUnit to clamp to the
+        max or min value instead of overflowing.
+
+        This may very well impact performance so the current plan is to enable
+        it for a couple of hours to a day to collect performance data and then
+        disable it again until we've had a chance to review the perf data.
+
+        * wtf/Platform.h:
+
 2012-09-28  Anders Carlsson  <ander...@apple.com>
 
         Remove Java bridge

Modified: trunk/Source/WTF/wtf/Platform.h (129981 => 129982)


--- trunk/Source/WTF/wtf/Platform.h	2012-09-29 16:03:02 UTC (rev 129981)
+++ trunk/Source/WTF/wtf/Platform.h	2012-09-29 17:43:42 UTC (rev 129982)
@@ -827,8 +827,12 @@
 #endif
 
 #if !defined(ENABLE_SATURATED_LAYOUT_ARITHMETIC)
+#if PLATFORM(CHROMIUM)
+#define ENABLE_SATURATED_LAYOUT_ARITHMETIC 1
+#else
 #define ENABLE_SATURATED_LAYOUT_ARITHMETIC 0
 #endif
+#endif
 
 #if ENABLE(ENABLE_SATURATED_LAYOUT_ARITHMETIC) && !ENABLE(ENABLE_SUBPIXEL_LAYOUT)
 #error "ENABLE_SATURATED_LAYOUT_ARITHMETIC requires ENABLE_SUBPIXEL_LAYOUT"
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to