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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.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/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index 254510c7739945d9ee85c643adbd2fafd02c3872..d0e0f65f9e4aca67d3fd4aeb89e64d21438c8e94 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,

Powered by Google App Engine
This is Rietveld 408576698