| Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| index 535f90699c94aab02253d897aec7dfe7afe65e9b..8387bc5ee4588e9f2cad6be853e737b55e83dba4 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -812,7 +812,7 @@ void PaintLayer::updateLayerPosition() {
|
| IntSize newSize = pixelSnappedIntSize(box->size(), box->location());
|
| didResize = newSize != m_size;
|
| m_size = newSize;
|
| - localPoint.moveBy(box->topLeftLocation());
|
| + localPoint.moveBy(box->physicalLocation());
|
| }
|
|
|
| if (!layoutObject()->isOutOfFlowPositioned() &&
|
| @@ -824,13 +824,13 @@ void PaintLayer::updateLayerPosition() {
|
| if (curr->isBox() && !curr->isTableRow()) {
|
| // Rows and cells share the same coordinate space (that of the section).
|
| // Omit them when computing our xpos/ypos.
|
| - localPoint.moveBy(toLayoutBox(curr)->topLeftLocation());
|
| + localPoint.moveBy(toLayoutBox(curr)->physicalLocation());
|
| }
|
| curr = curr->parent();
|
| }
|
| if (curr->isBox() && curr->isTableRow()) {
|
| // Put ourselves into the row coordinate space.
|
| - localPoint.moveBy(-toLayoutBox(curr)->topLeftLocation());
|
| + localPoint.moveBy(-toLayoutBox(curr)->physicalLocation());
|
| }
|
| }
|
|
|
|
|