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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.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/layout/svg/LayoutSVGText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
index a64f5e1ab3c5e88a067713275914f04df7ee939a..44bb14cfbc5f3f1e8c8995a5ed6e9eef54762de8 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
@@ -327,9 +327,9 @@ PositionWithAffinity LayoutSVGText::positionForPoint(
return createPositionWithAffinity(0);
LayoutPoint clippedPointInContents(pointInContents);
- clippedPointInContents.moveBy(-rootBox->topLeft());
+ clippedPointInContents.moveBy(-rootBox->location());
clippedPointInContents.clampNegativeToZero();
- clippedPointInContents.moveBy(rootBox->topLeft());
+ clippedPointInContents.moveBy(rootBox->location());
ASSERT(!rootBox->nextRootBox());
ASSERT(childrenInline());

Powered by Google App Engine
This is Rietveld 408576698