Title: [107487] trunk/Source/WebCore
- Revision
- 107487
- Author
- an...@apple.com
- Date
- 2012-02-11 13:44:47 -0800 (Sat, 11 Feb 2012)
Log Message
Add size assert for Length
https://bugs.webkit.org/show_bug.cgi?id=78420
Rubber-stamped by Andreas Kling.
Length type is memory critical and must not grow.
* platform/Length.cpp:
(SameSizeAsLength):
(WebCore):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (107486 => 107487)
--- trunk/Source/WebCore/ChangeLog 2012-02-11 21:37:44 UTC (rev 107486)
+++ trunk/Source/WebCore/ChangeLog 2012-02-11 21:44:47 UTC (rev 107487)
@@ -1,3 +1,16 @@
+2012-02-11 Antti Koivisto <an...@apple.com>
+
+ Add size assert for Length
+ https://bugs.webkit.org/show_bug.cgi?id=78420
+
+ Rubber-stamped by Andreas Kling.
+
+ Length type is memory critical and must not grow.
+
+ * platform/Length.cpp:
+ (SameSizeAsLength):
+ (WebCore):
+
2012-02-11 Anders Carlsson <ander...@apple.com>
Pass wheel events to a scroll elasticity controller on the scrolling thread
Modified: trunk/Source/WebCore/platform/Length.cpp (107486 => 107487)
--- trunk/Source/WebCore/platform/Length.cpp 2012-02-11 21:37:44 UTC (rev 107486)
+++ trunk/Source/WebCore/platform/Length.cpp 2012-02-11 21:44:47 UTC (rev 107487)
@@ -149,4 +149,10 @@
return r.release();
}
+class SameSizeAsLength {
+ int32_t value;
+ int32_t metaData;
+};
+COMPILE_ASSERT(sizeof(Length) == sizeof(SameSizeAsLength), length_should_stay_small);
+
} // namespace WebCore
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes