[WinCairo] Build fix after addition of openTypeTable.
authorbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 23:08:01 +0000 (23:08 +0000)
committerbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 23:08:01 +0000 (23:08 +0000)
* platform/graphics/FontPlatformData.h:
(FontPlatformData): The openTypeTable declaration is needed
for WinCairo as well.
* platform/graphics/win/FontPlatformDataWin.cpp:
(WebCore):
(WebCore::FontPlatformData::openTypeTable): The implementation
of openTypeTable is needed for non-CG builds.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/FontPlatformData.h
Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp

index 2e3f8d9..a06e841 100644 (file)
@@ -1,3 +1,15 @@
+2012-04-12  Brent Fulgham  <bfulgham@webkit.org>
+
+        [WinCairo] Build fix after addition of openTypeTable.
+
+        * platform/graphics/FontPlatformData.h:
+        (FontPlatformData): The openTypeTable declaration is needed
+        for WinCairo as well.
+        * platform/graphics/win/FontPlatformDataWin.cpp:
+        (WebCore):
+        (WebCore::FontPlatformData::openTypeTable): The implementation
+        of openTypeTable is needed for non-CG builds.
+
 2012-04-12  Balazs Kelemen  <kbalazs@webkit.org>
 
         [Qt] Fix WebKit1 build with V8
index a6af503..e822e50 100644 (file)
@@ -299,7 +299,7 @@ public:
 #endif
     }
 
-#if PLATFORM(WIN) && USE(CG)
+#if PLATFORM(WIN) && (USE(CG) || USE(CAIRO))
     PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const;
 #endif
 
index 1081de9..f783685 100644 (file)
@@ -75,7 +75,6 @@ FontPlatformData::FontPlatformData(HFONT font, float size, bool bold, bool obliq
     RestoreDC(hdc, -1);
 }
 
-#if USE(CG)
 PassRefPtr<SharedBuffer> FontPlatformData::openTypeTable(uint32_t table) const
 {
     HWndDC hdc(0);
@@ -92,7 +91,6 @@ PassRefPtr<SharedBuffer> FontPlatformData::openTypeTable(uint32_t table) const
     SelectObject(hdc, oldFont);
     return buffer.release();
 }
-#endif
 
 #ifndef NDEBUG
 String FontPlatformData::description() const