| 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 429e18c4d9aeaa4b959c4facb739b8951a8f5636..ac401c1309b686cd3e23510afd3b4f154e47cc38 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -1308,8 +1308,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(parent->offsetParent()) - current->offsetLeft(parent->offsetParent())).toInt());
|
| - layerOffset->setHeight((parent->offsetTop(parent->offsetParent()) - current->offsetTop(parent->offsetParent())).toInt());
|
| + layerOffset->setWidth((parent->offsetLeft() - current->offsetLeft()).toInt());
|
| + layerOffset->setHeight((parent->offsetTop() - current->offsetTop()).toInt());
|
| return searchRoot->parent();
|
| }
|
| }
|
|
|