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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.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/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index cd988173ecf8f8c9027ca00b6b605c78f398bd3f..a0b079e22bd2dc5ac93328347872c62ac07b70cb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -325,9 +325,10 @@ String LayoutText::plainText() const {
void LayoutText::absoluteRects(Vector<IntRect>& rects,
const LayoutPoint& accumulatedOffset) const {
- for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox())
+ for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
rects.append(enclosingIntRect(LayoutRect(
- LayoutPoint(accumulatedOffset) + box->topLeft(), box->size())));
+ LayoutPoint(accumulatedOffset) + box->location(), box->size())));
+ }
}
static FloatRect localQuadForTextBox(InlineTextBox* box,
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698