Build fix for Qt and Cairo builds
[WebKit-https.git] / WebCore / platform / graphics / cairo / GraphicsContextCairo.cpp
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());