Remove dead code FontPlatformData::roundsGlyphAdvances()
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jun 2015 02:55:07 +0000 (02:55 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jun 2015 02:55:07 +0000 (02:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=145628

Reviewed by Simon Fraser.

No new tests because there is no behavior change.

* WebCore.order:
* platform/graphics/FontPlatformData.h:
* platform/graphics/cocoa/FontPlatformDataCocoa.mm:
(WebCore::FontPlatformData::roundsGlyphAdvances): Deleted.

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

Source/WebCore/ChangeLog
Source/WebCore/WebCore.order
Source/WebCore/platform/graphics/FontPlatformData.h
Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm

index a760bfa..a1b5434 100644 (file)
@@ -1,3 +1,17 @@
+2015-06-03  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        Remove dead code FontPlatformData::roundsGlyphAdvances()
+        https://bugs.webkit.org/show_bug.cgi?id=145628
+
+        Reviewed by Simon Fraser.
+
+        No new tests because there is no behavior change.
+
+        * WebCore.order:
+        * platform/graphics/FontPlatformData.h:
+        * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
+        (WebCore::FontPlatformData::roundsGlyphAdvances): Deleted.
+
 2015-06-03  Ryuan Choi  <ryuan.choi@navercorp.com>
 
         [CoordinatedGraphics] Merge CoordinatedTile into Tile
index 5795d0e..19a180d 100644 (file)
@@ -352,7 +352,6 @@ __ZN7WebCoreL26provideStringAndAttributesElPlPPK14__CFDictionaryPv
 __ZN3WTF6VectorINS_9RetainPtrIPK8__CTLineEELm0ENS_15CrashOnOverflowEE15reserveCapacityEm
 __ZN7WebCore21ComplexTextController14ComplexTextRunC2EPK7__CTRunPKNS_14SimpleFontDataEPKtjm7CFRange
 __ZN7WebCore21ComplexTextController23adjustGlyphsAndAdvancesEv
-__ZNK7WebCore16FontPlatformData19roundsGlyphAdvancesEv
 __ZNK7WebCore14SimpleFontData22platformBoundsForGlyphEt
 __ZN3WTF6OwnPtrIN7WebCore15GlyphMetricsMapINS1_9FloatRectEEEEaSERKNS_10PassOwnPtrIS4_EE
 __ZN3WTF10PassOwnPtrIN7WebCore15GlyphMetricsMapINS1_9FloatRectEEEED2Ev
index 2795feb..a7142c5 100644 (file)
@@ -115,7 +115,6 @@ public:
     RetainPtr<CFTypeRef> objectForEqualityCheck() const;
 
     bool allowsLigatures() const;
-    bool roundsGlyphAdvances() const;
 
 #if USE(APPKIT)
     // FIXME: Remove this when all NSFont usage is removed.
index fe1f23a..c39063e 100644 (file)
@@ -130,16 +130,6 @@ void FontPlatformData::setFont(CTFontRef font)
     m_ctFont = nullptr;
 }
 
-bool FontPlatformData::roundsGlyphAdvances() const
-{
-#if USE(APPKIT)
-    return [(NSFont *)m_font renderingMode] == NSFontAntialiasedIntegerAdvancementsRenderingMode;
-#else
-    return false;
-#endif
-}
-
-
 bool FontPlatformData::allowsLigatures() const
 {
     if (!m_font)