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 e3b94cac4beebeafa1c0ecbce613dbc0b367f07a..a89241da711cda2e012bc1c13abf1742c71f5480 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -41,6 +41,7 @@ |
#include "core/editing/EditingUtilities.h" |
#include "core/editing/FrameSelection.h" |
#include "core/editing/TextAffinity.h" |
+#include "core/editing/VisibleUnits.h" |
#include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h" |
#include "core/frame/EventHandlerRegistry.h" |
#include "core/frame/FrameView.h" |
@@ -1000,7 +1001,7 @@ FloatRect LayoutObject::AbsoluteBoundingBoxRectForRange(const Range* range) { |
range->OwnerDocument().UpdateStyleAndLayout(); |
Vector<FloatQuad> quads; |
- range->TextQuads(quads); |
+ quads.AppendVector(ComputeTextQuads(EphemeralRange(range))); |
FloatRect result; |
for (size_t i = 0; i < quads.size(); ++i) |