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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.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/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 2c3ac28baf3f2822b85cba70600adeeaabf7049e..afd7e3d9cccfa4d32f0353dde943824545729e4d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -282,7 +282,7 @@ LayoutRect LayoutInline::localCaretRect(InlineBox* inlineBox,
localCaretRectForEmptyElement(borderAndPaddingWidth(), LayoutUnit());
if (InlineBox* firstBox = firstLineBox())
- caretRect.moveBy(firstBox->topLeft());
+ caretRect.moveBy(firstBox->location());
return caretRect;
}
@@ -609,7 +609,7 @@ void LayoutInline::generateLineBoxRects(GeneratorContext& yield) const {
generateCulledLineBoxRects(yield, this);
} else if (InlineFlowBox* curr = firstLineBox()) {
for (; curr; curr = curr->nextLineBox())
- yield(LayoutRect(curr->topLeft(), curr->size()));
+ yield(LayoutRect(curr->location(), curr->size()));
}
}
@@ -784,7 +784,7 @@ void LayoutInline::absoluteQuadsForSelf(Vector<FloatQuad>& quads) const {
LayoutPoint LayoutInline::firstLineBoxTopLeft() const {
if (InlineBox* firstBox = firstLineBoxIncludingCulling())
- return firstBox->topLeft();
+ return firstBox->location();
return LayoutPoint();
}

Powered by Google App Engine
This is Rietveld 408576698