Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(916)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2536453002: Rename some functions about layout locations (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}
}

Powered by Google App Engine
This is Rietveld 408576698