Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index 20d5a455ef40219487ada936fd63ceec9fa900e9..c236ae56e577b6f810a2fece75827a4ede32dc41 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -1302,8 +1302,8 @@ static PaintLayer* findLayerForGraphicsLayer(PaintLayer* searchRoot, GraphicsLay |
if (searchRoot->layoutObject()->offsetParent() == searchRoot->parent()->layoutObject()->offsetParent()) { |
LayoutBoxModelObject* current = searchRoot->layoutObject(); |
LayoutBoxModelObject* parent = searchRoot->parent()->layoutObject(); |
- layerOffset->setWidth((parent->offsetLeft() - current->offsetLeft()).toInt()); |
- layerOffset->setHeight((parent->offsetTop() - current->offsetTop()).toInt()); |
+ layerOffset->setWidth((parent->offsetLeft(parent->offsetParent()) - current->offsetLeft(parent->offsetParent())).toInt()); |
+ layerOffset->setHeight((parent->offsetTop(parent->offsetParent()) - current->offsetTop(parent->offsetParent())).toInt()); |
return searchRoot->parent(); |
} |
} |