Fix preprocessor logic for CG/QT
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 06:08:11 +0000 (06:08 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 06:08:11 +0000 (06:08 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21551 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/html/HTMLCanvasElement.cpp

index 9545c5a6be496949a151d3bab4fd75590378bfc3..83c77a566b45f8a008dbbbfdd7157b764afa24e6 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-17  George Staikos  <staikos@kde.org>
+
+        Reviewed by hyatt.
+
+        Fix preprocessor logic for CG/QT
+
+        * html/HTMLCanvasElement.cpp:
+        (WebCore::HTMLCanvasElement::reset):
+
 2007-05-17  David Hyatt  <hyatt@apple.com>
 
         Add a line gutter to view source mode.  The gutter uses counters, and this exposed the fact
index 2842958cae8319100de4becef0d288825888a8fa..9f99053062e587aa3a7e535d00e640e3291746dd 100644 (file)
@@ -165,7 +165,7 @@ void HTMLCanvasElement::reset()
 
     bool hadDrawingContext = m_createdDrawingContext;
     m_createdDrawingContext = false;
-#if PLATFORM(QT)
+#if PLATFORM(CG)
     fastFree(m_data);
 #elif PLATFORM(QT)
     delete m_painter;