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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2775663008: LayoutObject::absoluteBoundingBoxRectForRange() should take EphemeralRange (Closed)
Patch Set: Split Patch:1(TextQuads at VisibleUnits) Created 3 years, 9 months 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 77a4e3d57718b037499ec70e144e0487df158d69..8fc57dd52e3cb3cc4461d33a77bf38579c6f6ed4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1012,7 +1012,7 @@ FloatRect LayoutObject::absoluteBoundingBoxRectForRange(const Range* range) {
range->ownerDocument().updateStyleAndLayout();
Vector<FloatQuad> quads;
- range->textQuads(quads);
+ textQuads(&quads, EphemeralRange(range));
FloatRect result;
for (size_t i = 0; i < quads.size(); ++i)

Powered by Google App Engine
This is Rietveld 408576698