2008-04-22 Alp Toker <alp@nuanti.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Apr 2008 02:15:51 +0000 (02:15 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Apr 2008 02:15:51 +0000 (02:15 +0000)
        Rubber-stamped by Dave Hyatt.

        Move GraphicsContext::clipToImageBuffer() notImplemented() stub to
        GraphicsContextCairo.

        * platform/graphics/GraphicsContext.cpp:
        * platform/graphics/cairo/GraphicsContextCairo.cpp:
        (WebCore::GraphicsContext::clipToImageBuffer):

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

WebCore/ChangeLog
WebCore/platform/graphics/GraphicsContext.cpp
WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp

index 491899a..4976c6a 100644 (file)
@@ -1,3 +1,14 @@
+2008-04-22  Alp Toker  <alp@nuanti.com>
+
+        Rubber-stamped by Dave Hyatt.
+
+        Move GraphicsContext::clipToImageBuffer() notImplemented() stub to
+        GraphicsContextCairo.
+
+        * platform/graphics/GraphicsContext.cpp:
+        * platform/graphics/cairo/GraphicsContextCairo.cpp:
+        (WebCore::GraphicsContext::clipToImageBuffer):
+
 2008-04-22  David Hyatt  <hyatt@apple.com>
 
         Add support for mask-composite to match background-composite.
index 0925d19..84e3675 100644 (file)
@@ -425,7 +425,9 @@ void GraphicsContext::fillRect(const FloatRect& rect, Generator& generator)
 void GraphicsContext::setPlatformTextDrawingMode(int mode)
 {
 }
+#endif
 
+#if !PLATFORM(CG) && !PLATFORM(CAIRO)
 // Other platforms need to implement this.
 void GraphicsContext::clipToImageBuffer(const FloatRect&, const ImageBuffer*)
 {
index 8ad28df..b07e2a4 100644 (file)
@@ -582,6 +582,13 @@ void GraphicsContext::addInnerRoundedRectClip(const IntRect& rect, int thickness
     cairo_set_fill_rule(cr, savedFillRule);
 }
 
+void GraphicsContext::clipToImageBuffer(const FloatRect& rect, const ImageBuffer* imageBuffer)
+{
+    if (paintingDisabled())
+        return;
+
+    notImplemented();
+}
 
 void GraphicsContext::setPlatformShadow(IntSize const&, int, Color const&)
 {