2011-04-05 Steve VanDeBogart <vandebo@chromium.org>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Apr 2011 05:57:43 +0000 (05:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Apr 2011 05:57:43 +0000 (05:57 +0000)
        Reviewed by David Levin.

        Update call to SkAdvancedTypefaceMetrics to new API.
        https://bugs.webkit.org/show_bug.cgi?id=57887

        * platform/graphics/chromium/FontPlatformDataLinux.cpp:
        (WebCore::FontPlatformData::emSizeInFontUnits):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83020 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/FontPlatformDataLinux.cpp

index 3db1453..af55263 100644 (file)
@@ -1,3 +1,13 @@
+2011-04-05  Steve VanDeBogart  <vandebo@chromium.org>
+
+        Reviewed by David Levin.
+
+        Update call to SkAdvancedTypefaceMetrics to new API.
+        https://bugs.webkit.org/show_bug.cgi?id=57887
+
+        * platform/graphics/chromium/FontPlatformDataLinux.cpp:
+        (WebCore::FontPlatformData::emSizeInFontUnits):
+
 2011-04-05  Alexey Proskuryakov  <ap@apple.com>
 
         Reviewed by Darin Adler.
index c3edfac..1fb5957 100644 (file)
@@ -122,7 +122,7 @@ int FontPlatformData::emSizeInFontUnits() const
     if (m_emSizeInFontUnits)
         return m_emSizeInFontUnits;
 
-    SkAdvancedTypefaceMetrics* metrics = m_typeface->getAdvancedTypefaceMetrics(false);
+    SkAdvancedTypefaceMetrics* metrics = m_typeface->getAdvancedTypefaceMetrics(SkAdvancedTypefaceMetrics::kNo_PerGlyphInfo);
     m_emSizeInFontUnits = metrics->fEmSize;
     metrics->unref();
     return m_emSizeInFontUnits;