| Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| index e64e78de969f5615c9e4ab38f5702af910c7b31b..cda12879ea7be1f8a09c73aa9f581a9e1edebc66 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| @@ -977,10 +977,10 @@ void FrameSelection::revealSelection(const ScrollAlignment& alignment,
|
| rect = LayoutRect(absoluteCaretBounds());
|
| break;
|
| case RangeSelection:
|
| - rect = LayoutRect(
|
| - revealExtentOption == RevealExtent
|
| - ? absoluteCaretBoundsOf(createVisiblePosition(extent()))
|
| - : enclosingIntRect(unclippedBounds()));
|
| + rect = LayoutRect(revealExtentOption == RevealExtent
|
| + ? absoluteCaretBoundsOf(createVisiblePosition(
|
| + computeVisibleSelectionInDOMTree().extent()))
|
| + : enclosingIntRect(unclippedBounds()));
|
| break;
|
| }
|
|
|
|
|