Title: [233649] trunk/Source/WebCore
Revision
233649
Author
[email protected]
Date
2018-07-09 11:42:25 -0700 (Mon, 09 Jul 2018)

Log Message

Shrink RenderSVGShape
https://bugs.webkit.org/show_bug.cgi?id=187459

Reviewed by Zalan Bujtas.

Shrink RenderSVGShape from 328 to 320 bytes by moving the bits before the AffineTransform,
which is 16-byte aligned. This saves 9.6KB on nytimes.com.

* rendering/svg/RenderSVGShape.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (233648 => 233649)


--- trunk/Source/WebCore/ChangeLog	2018-07-09 18:41:31 UTC (rev 233648)
+++ trunk/Source/WebCore/ChangeLog	2018-07-09 18:42:25 UTC (rev 233649)
@@ -1,5 +1,17 @@
 2018-07-09  Simon Fraser  <[email protected]>
 
+        Shrink RenderSVGShape
+        https://bugs.webkit.org/show_bug.cgi?id=187459
+
+        Reviewed by Zalan Bujtas.
+
+        Shrink RenderSVGShape from 328 to 320 bytes by moving the bits before the AffineTransform,
+        which is 16-byte aligned. This saves 9.6KB on nytimes.com.
+
+        * rendering/svg/RenderSVGShape.h:
+
+2018-07-09  Simon Fraser  <[email protected]>
+
         Shrink CSSFontFace
         https://bugs.webkit.org/show_bug.cgi?id=187456
 

Modified: trunk/Source/WebCore/rendering/svg/RenderSVGShape.h (233648 => 233649)


--- trunk/Source/WebCore/rendering/svg/RenderSVGShape.h	2018-07-09 18:41:31 UTC (rev 233648)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGShape.h	2018-07-09 18:42:25 UTC (rev 233649)
@@ -134,13 +134,14 @@
 private:
     FloatRect m_repaintBoundingBox;
     FloatRect m_repaintBoundingBoxExcludingShadow;
-    AffineTransform m_localTransform;
-    std::unique_ptr<Path> m_path;
-    Vector<MarkerPosition> m_markerPositions;
 
     bool m_needsBoundariesUpdate : 1;
     bool m_needsShapeUpdate : 1;
     bool m_needsTransformUpdate : 1;
+
+    AffineTransform m_localTransform;
+    std::unique_ptr<Path> m_path;
+    Vector<MarkerPosition> m_markerPositions;
 };
 
 } // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to