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.
Bug 17269: Deobfuscate CanvasRenderingContext2D.cpp
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());
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();