Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp |
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
index 828d0c2865ac324b37e1df9c82870a8e0e0e5b65..ef76b87292d7db37ecf73429ed3890533c4cf00c 100644 |
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp |
@@ -1996,7 +1996,7 @@ void CompositedLayerMapping::doPaintTask(GraphicsLayerPaintInfo& paintInfo, Grap |
// painting code. |
IntSize offset = paintInfo.offsetFromRenderer; |
- context->translate(-offset); |
+ context->translate(-offset.width(), -offset.height()); |
// The dirtyRect is in the coords of the painting root. |
IntRect dirtyRect(clip); |
@@ -2040,7 +2040,7 @@ void CompositedLayerMapping::doPaintTask(GraphicsLayerPaintInfo& paintInfo, Grap |
ASSERT(!paintInfo.renderLayer->usedTransparency()); |
// Manually restore the context to its original state by applying the opposite translation. |
- context->translate(offset); |
+ context->translate(offset.width(), offset.height()); |
} |
static void paintScrollbar(Scrollbar* scrollbar, GraphicsContext& context, const IntRect& clip) |