Index: Source/core/rendering/RenderWidget.cpp |
diff --git a/Source/core/rendering/RenderWidget.cpp b/Source/core/rendering/RenderWidget.cpp |
index d31cf80e356ed25f0cfd8b58ce95a06bc5e4af9f..9c0144548c2b7d045451d243fd48008f5a3170a4 100644 |
--- a/Source/core/rendering/RenderWidget.cpp |
+++ b/Source/core/rendering/RenderWidget.cpp |
@@ -169,13 +169,13 @@ void RenderWidget::paintContents(PaintInfo& paintInfo, const LayoutPoint& paintO |
// When painting widgets into compositing layers, tx and ty are relative to the enclosing compositing layer, |
// not the root. In this case, shift the CTM and adjust the paintRect to be root-relative to fix plug-in drawing. |
if (!widgetPaintOffset.isZero()) { |
- paintInfo.context->translate(widgetPaintOffset); |
+ paintInfo.context->translate(widgetPaintOffset.width(), widgetPaintOffset.height()); |
paintRect.move(-widgetPaintOffset); |
} |
widget->paint(paintInfo.context, paintRect); |
if (!widgetPaintOffset.isZero()) |
- paintInfo.context->translate(-widgetPaintOffset); |
+ paintInfo.context->translate(-widgetPaintOffset.width(), -widgetPaintOffset.height()); |
if (widget->isFrameView()) { |
FrameView* frameView = toFrameView(widget); |