Title: [99730] trunk/Source/WebCore
Revision
99730
Author
andreas.kl...@nokia.com
Date
2011-11-09 10:01:04 -0800 (Wed, 09 Nov 2011)

Log Message

Shrink StyleSheet on 64-bit.
<http://webkit.org/b/71923>

Reviewed by Darin Adler.

Move m_disabled to the top so it folds into the padding at
the end of RefCounted on 64-bit, shrinking StyleSheet by 8 bytes.

* css/StyleSheet.cpp:
(WebCore::StyleSheet::StyleSheet):
* css/StyleSheet.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (99729 => 99730)


--- trunk/Source/WebCore/ChangeLog	2011-11-09 17:40:35 UTC (rev 99729)
+++ trunk/Source/WebCore/ChangeLog	2011-11-09 18:01:04 UTC (rev 99730)
@@ -1,5 +1,19 @@
 2011-11-09  Andreas Kling  <kl...@webkit.org>
 
+        Shrink StyleSheet on 64-bit.
+        <http://webkit.org/b/71923>
+
+        Reviewed by Darin Adler.
+
+        Move m_disabled to the top so it folds into the padding at
+        the end of RefCounted on 64-bit, shrinking StyleSheet by 8 bytes.
+
+        * css/StyleSheet.cpp:
+        (WebCore::StyleSheet::StyleSheet):
+        * css/StyleSheet.h:
+
+2011-11-09  Andreas Kling  <kl...@webkit.org>
+
         StyleSheet: Devirtualize styleSheetChanged().
         <http://webkit.org/b/71913>
 

Modified: trunk/Source/WebCore/css/StyleSheet.cpp (99729 => 99730)


--- trunk/Source/WebCore/css/StyleSheet.cpp	2011-11-09 17:40:35 UTC (rev 99729)
+++ trunk/Source/WebCore/css/StyleSheet.cpp	2011-11-09 18:01:04 UTC (rev 99730)
@@ -29,20 +29,20 @@
 namespace WebCore {
 
 StyleSheet::StyleSheet(Node* parentNode, const String& originalURL, const KURL& finalURL)
-    : m_parentRule(0)
+    : m_disabled(false)
+    , m_parentRule(0)
     , m_parentNode(parentNode)
     , m_originalURL(originalURL)
     , m_finalURL(finalURL)
-    , m_disabled(false)
 {
 }
 
 StyleSheet::StyleSheet(CSSRule* parentRule, const String& originalURL, const KURL& finalURL)
-    : m_parentRule(parentRule)
+    : m_disabled(false)
+    , m_parentRule(parentRule)
     , m_parentNode(0)
     , m_originalURL(originalURL)
     , m_finalURL(finalURL)
-    , m_disabled(false)
 {
 }
 

Modified: trunk/Source/WebCore/css/StyleSheet.h (99729 => 99730)


--- trunk/Source/WebCore/css/StyleSheet.h	2011-11-09 17:40:35 UTC (rev 99729)
+++ trunk/Source/WebCore/css/StyleSheet.h	2011-11-09 18:01:04 UTC (rev 99730)
@@ -77,13 +77,13 @@
     StyleSheet(CSSRule* parentRule, const String& href, const KURL& finalURL);
 
 private:
+    bool m_disabled;
     CSSRule* m_parentRule;
     Node* m_parentNode;
     String m_originalURL;
     KURL m_finalURL;
     String m_strTitle;
     RefPtr<MediaList> m_media;
-    bool m_disabled;
 };
 
 } // namespace
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to