Reviewed by Mitz.
authorzimmermann <zimmermann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Dec 2006 11:39:10 +0000 (11:39 +0000)
committerzimmermann <zimmermann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Dec 2006 11:39:10 +0000 (11:39 +0000)
Fix non-svg build. (At least hope BuildBot doesn't moan anymore :-)

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

WebCore/ChangeLog
WebCore/platform/graphics/GraphicsContext.h
WebCore/platform/mac/GraphicsContextMac.mm

index 0c6c805530d98b5d722431d2a6d0e7e1238c8432..ce2a4053f7417765422576cb0e9196add537d272 100644 (file)
@@ -1,3 +1,12 @@
+2006-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed by Mitz.
+
+        Fix non-svg build.
+
+        * platform/graphics/GraphicsContext.h:
+        * platform/mac/GraphicsContextMac.mm:
+
 2006-12-02  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Tim Omernick
index 03b41b719f665c999ef962267876af4af8636122..bcf41452a30adbc97e848b6939f87b0a7a4c79fd 100644 (file)
@@ -63,7 +63,6 @@ namespace WebCore {
     class GraphicsContextPlatformPrivate;
     class KURL;
     class Path;
-    class SVGResourceImage;
     class TextRun;
     class TextStyle;
 
@@ -199,6 +198,7 @@ namespace WebCore {
     };
 
 #ifdef SVG_SUPPORT
+    class SVGResourceImage;
     GraphicsContext* contextForImage(SVGResourceImage*);
 #endif
 
index 9f73bcd647dcdf030a22a2d03e404b3c88702413..adc096448c21e54767cd3ca67b9f166316a58236 100644 (file)
@@ -179,6 +179,7 @@ void GraphicsContext::drawLineForMisspellingOrBadGrammar(const IntPoint& point,
     CGContextRestoreGState(context);
 }
 
+#ifdef SVG_SUPPORT
 GraphicsContext* contextForImage(SVGResourceImage* image)
 {
     CGLayerRef cgLayer = image->cgLayer();
@@ -198,5 +199,6 @@ GraphicsContext* contextForImage(SVGResourceImage* image)
     }
     return new GraphicsContext(CGLayerGetContext(cgLayer));
 }
+#endif
 
 }