| 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 8e0197044b71033f39cfd08f0d42173a1a5e01a6..dceb936407ab7b7f161b7444d22711523a124a5f 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -1303,8 +1303,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();
|
| }
|
| }
|
|
|