Title: [152689] trunk/Source/WebCore
Revision
152689
Author
[email protected]
Date
2013-07-15 18:19:17 -0700 (Mon, 15 Jul 2013)

Log Message

Pack WebCore::Font slightly better.
<http://webkit.org/b/118681>
<rdar://problem/14446014>

Reviewed by Sam Weinig.

Knock 8 bytes off of Font by packing the members better. Reduces memory consumption by 429 kB when
viewing the full HTML5 spec at <http://whatwg.org/c>

* platform/graphics/Font.h:
(WebCore::Font::typesettingFeatures):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (152688 => 152689)


--- trunk/Source/WebCore/ChangeLog	2013-07-16 01:19:11 UTC (rev 152688)
+++ trunk/Source/WebCore/ChangeLog	2013-07-16 01:19:17 UTC (rev 152689)
@@ -1,3 +1,17 @@
+2013-07-15  Andreas Kling  <[email protected]>
+
+        Pack WebCore::Font slightly better.
+        <http://webkit.org/b/118681>
+        <rdar://problem/14446014>
+
+        Reviewed by Sam Weinig.
+
+        Knock 8 bytes off of Font by packing the members better. Reduces memory consumption by 429 kB when
+        viewing the full HTML5 spec at <http://whatwg.org/c>
+
+        * platform/graphics/Font.h:
+        (WebCore::Font::typesettingFeatures):
+
 2013-07-15  Rob Buis  <[email protected]>
 
         XMLSerializer doesn't include namespaces on nodes in HTML documents

Modified: trunk/Source/WebCore/platform/graphics/Font.h (152688 => 152689)


--- trunk/Source/WebCore/platform/graphics/Font.h	2013-07-16 01:19:11 UTC (rev 152688)
+++ trunk/Source/WebCore/platform/graphics/Font.h	2013-07-16 01:19:17 UTC (rev 152689)
@@ -128,7 +128,7 @@
     
     FontRenderingMode renderingMode() const { return m_fontDescription.renderingMode(); }
 
-    TypesettingFeatures typesettingFeatures() const { return m_typesettingFeatures; }
+    TypesettingFeatures typesettingFeatures() const { return static_cast<TypesettingFeatures>(m_typesettingFeatures); }
 
     const AtomicString& firstFamily() const { return m_fontDescription.firstFamily(); }
     unsigned familyCount() const { return m_fontDescription.familyCount(); }
@@ -310,7 +310,7 @@
     short m_letterSpacing;
     short m_wordSpacing;
     bool m_needsTranscoding;
-    mutable TypesettingFeatures m_typesettingFeatures; // Caches values computed from m_fontDescription.
+    mutable unsigned m_typesettingFeatures : 2; // (TypesettingFeatures) Caches values computed from m_fontDescription.
 };
 
 void invalidateFontGlyphsCache();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to