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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.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/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 8c6a6be5c4b79a6b3ff8817b3513db8f1720fd69..7e8f2d7cc5cb804a9223ceafe91e357213d5585d 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();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698