| 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 341781f746caf16be76b722d4e73e32c6d572f76..6398bcd75b9ab8afd72e06ab31abac7bc1fa9b43 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -994,14 +994,15 @@ IntRect LayoutObject::AbsoluteElementBoundingBoxRect() const {
|
| .EnclosingBoundingBox();
|
| }
|
|
|
| -FloatRect LayoutObject::AbsoluteBoundingBoxRectForRange(const Range* range) {
|
| - if (!range || !range->startContainer())
|
| +FloatRect LayoutObject::AbsoluteBoundingBoxRectForRange(
|
| + const EphemeralRange& range) {
|
| + if (range.IsNull() || !range.StartPosition().ComputeContainerNode())
|
| return FloatRect();
|
|
|
| - range->OwnerDocument().UpdateStyleAndLayout();
|
| + range.GetDocument().UpdateStyleAndLayout();
|
|
|
| Vector<FloatQuad> quads;
|
| - quads.AppendVector(ComputeTextQuads(EphemeralRange(range)));
|
| + quads.AppendVector(ComputeTextQuads(range));
|
|
|
| FloatRect result;
|
| for (size_t i = 0; i < quads.size(); ++i)
|
|
|