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

Unified Diff: third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp

Issue 2536453002: Rename some functions about layout locations (Closed)
Patch Set: Add test 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/layout/svg/line/SVGRootInlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp b/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp
index fe9541f71d65a99e69b410da692d48126567bf1d..e509869c521a73e32f13ff1e343cbe93bc3e2a91 100644
--- a/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp
@@ -108,7 +108,7 @@ LayoutRect SVGRootInlineBox::layoutInlineBoxes(InlineBox& box) {
void SVGRootInlineBox::adjustInlineBoxesToBlockSpace(InlineBox& box) {
LineLayoutBlockFlow parentBlock = block();
- LayoutPoint location = box.topLeft();
+ LayoutPoint location = box.location();
location.moveBy(-parentBlock.location());
box.setX(location.x());
box.setY(location.y());
@@ -139,7 +139,7 @@ InlineBox* SVGRootInlineBox::closestLeafChildForPosition(
continue;
closestLeaf = leaf;
- if (point.x() < leaf->left() + leaf->logicalWidth())
+ if (point.x() < leaf->x() + leaf->logicalWidth())
return leaf;
}

Powered by Google App Engine
This is Rietveld 408576698