Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index d00a9f1ba3b55d0baefd64061a830747ac46493c..60159e585cb995e6ee9840608e2c0f1a45260411 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -1310,8 +1310,12 @@ unsigned Internals::touchEventHandlerCount(Document* document, ExceptionState& e |
static RenderLayer* findRenderLayerForGraphicsLayer(RenderLayer* searchRoot, GraphicsLayer* graphicsLayer, IntSize* layerOffset, String* layerType) |
{ |
*layerOffset = IntSize(); |
- if (searchRoot->hasCompositedLayerMapping() && graphicsLayer == searchRoot->compositedLayerMapping()->mainGraphicsLayer()) |
+ if (searchRoot->hasCompositedLayerMapping() && graphicsLayer == searchRoot->compositedLayerMapping()->mainGraphicsLayer()) { |
+ CompositedLayerMappingPtr compositedLayerMapping = searchRoot->compositedLayerMapping(); |
+ LayoutSize offset = compositedLayerMapping->contentOffsetInCompositingLayer(); |
+ *layerOffset = IntSize(offset.width(), offset.height()); |
return searchRoot; |
+ } |
GraphicsLayer* layerForScrolling = searchRoot->scrollableArea() ? searchRoot->scrollableArea()->layerForScrolling() : 0; |
if (graphicsLayer == layerForScrolling) { |