2007-11-22 Laszlo Gombos <laszlo.gombos@gmail.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2007 00:04:00 +0000 (00:04 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2007 00:04:00 +0000 (00:04 +0000)
        Reviewed by Alp Toker.

        Fix some compilation warnings.  Do not reference undefined (platform) specific type (WebCore::CachedFont::m_fontData)

        * loader/CachedFont.cpp:
        (WebCore::CachedFont::~CachedFont):
        (WebCore::CachedFont::allReferencesRemoved):

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

WebCore/ChangeLog
WebCore/loader/CachedFont.cpp

index 1ea8f3defd25a7ca0698990d4268d30875b13480..033502b7026857f4d532ae899a98d2869c0e6a2a 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-22  Laszlo Gombos  <laszlo.gombos@gmail.com>
+
+        Reviewed by Alp Toker.
+
+        Fix some compilation warnings.  Do not reference undefined (platform) specific type (WebCore::CachedFont::m_fontData)
+
+        * loader/CachedFont.cpp:
+        (WebCore::CachedFont::~CachedFont):
+        (WebCore::CachedFont::allReferencesRemoved):
+
 2007-11-22  Alp Toker  <alp@atoker.com>
 
         Reviewed by Mark Rowe.
 2007-11-22  Alp Toker  <alp@atoker.com>
 
         Reviewed by Mark Rowe.
index 2d135fe5ece6d6f068a2747726d9fe703a71339a..d27c07a76bc08a73477fac9eaf137bb7a2949851 100644 (file)
@@ -49,7 +49,9 @@ CachedFont::CachedFont(DocLoader* dl, const String &url)
 
 CachedFont::~CachedFont()
 {
 
 CachedFont::~CachedFont()
 {
+#if PLATFORM(CG) || PLATFORM(QT)
     delete m_fontData;
     delete m_fontData;
+#endif
 }
 
 void CachedFont::ref(CachedResourceClient *c)
 }
 
 void CachedFont::ref(CachedResourceClient *c)
@@ -103,10 +105,12 @@ FontPlatformData CachedFont::platformDataFromCustomData(int size, bool bold, boo
 
 void CachedFont::allReferencesRemoved()
 {
 
 void CachedFont::allReferencesRemoved()
 {
+#if PLATFORM(CG) || PLATFORM(QT)
     if (m_fontData) {
         delete m_fontData;
         m_fontData = 0;
     }
     if (m_fontData) {
         delete m_fontData;
         m_fontData = 0;
     }
+#endif
 }
 
 void CachedFont::checkNotify()
 }
 
 void CachedFont::checkNotify()