| 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 df0849ba475e947a4d79aa3ae87cb6e52fc76d45..54ee438acb1d0c9fc3c5fce1865acbba0a472cb0 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -994,13 +994,14 @@ 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();
|
|
|
| - return ComputeTextFloatRect(EphemeralRange(range));
|
| + return ComputeTextFloatRect(range);
|
| }
|
|
|
| void LayoutObject::AddAbsoluteRectForLayer(IntRect& result) {
|
|
|