Build fix for Qt and Cairo builds
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Feb 2008 06:44:46 +0000 (06:44 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Feb 2008 06:44:46 +0000 (06:44 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30337 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
WebCore/platform/graphics/qt/GraphicsContextQt.cpp

index f85ae22c2c72d6ea099fe9ca278d27891906cdf3..7fcb3a66ea46123e3db11241befc1dc17f32e184 100644 (file)
@@ -1,3 +1,13 @@
+2008-02-15  Oliver Hunt  <oliver@apple.com>
+
+        Reviewed by NOBODY (Build fix).
+
+        Build fix for Qt and Cairo builds
+
+        * platform/graphics/cairo/GraphicsContextCairo.cpp:
+        (WebCore::GraphicsContext::drawImage):
+        * platform/graphics/qt/GraphicsContextQt.cpp:
+
 2008-02-15  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Dan B.
index 9baf7801c0322c7240a8465fffa48ed968ebee29..1c1ea16913c9188364c391613391999dc2a5c8c6 100644 (file)
@@ -909,11 +909,11 @@ void GraphicsContext::paintBuffer(ImageBuffer* buffer, const IntRect& r)
     cairo_restore(cr);
 }
 
-void GraphicsContext::drawImage(ImageBuffer* buffer, const FloatRect& srcRect, const FloatRect& destRect)
+void GraphicsContext::drawImage(ImageBuffer* buffer, const FloatRect& srcRect, const FloatRect& dstRect)
 {
-    cairo_surface_flush(m_data->surface());    
+    cairo_surface_flush(buffer->surface());    
     cairo_save(platformContext());
-    cairo_set_source_surface(platformContext(), m_data->surface(), srcRect.x(), srcRect.y());
+    cairo_set_source_surface(platformContext(), buffer->surface(), srcRect.x(), srcRect.y());
     cairo_rectangle(platformContext(), dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height());
     cairo_fill(platformContext());
     cairo_restore(platformContext());
index 6f97a9771c0a381ddc0d338bdd2d9d425d666ed1..ec35d962a20ee81ca67d42774eff99ee1b7fbd35 100644 (file)
@@ -929,7 +929,7 @@ void GraphicsContext::paintBuffer(ImageBuffer* buffer, const IntRect& r)
     painter->setBackground(currentBackground);
 }
 
-void GraphicsContext::drawImage(ImageBuffer* buffer, const FloatRect& srcRect, const FloatRect& destRect)
+void GraphicsContext::drawImage(ImageBuffer* buffer, const FloatRect& srcRect, const FloatRect& dstRect)
 {
     QPainter* painter = static_cast<QPainter*>(platformContext());
     QPixmap px = *buffer->pixmap();