| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 552119c21879c15481a47ff6761d7b9e489d07ea..f705e312257e6e00a859c0304ee7e175c99269e2 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -2649,14 +2649,20 @@ unsigned Internals::visibleSelectionAnchorOffset() {
|
| Node* Internals::visibleSelectionFocusNode() {
|
| if (!frame())
|
| return nullptr;
|
| - Position position = frame()->selection().extent();
|
| + Position position = frame()
|
| + ->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .extent();
|
| return position.isNull() ? nullptr : position.computeContainerNode();
|
| }
|
|
|
| unsigned Internals::visibleSelectionFocusOffset() {
|
| if (!frame())
|
| return 0;
|
| - Position position = frame()->selection().extent();
|
| + Position position = frame()
|
| + ->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .extent();
|
| return position.isNull() ? 0 : position.computeOffsetInContainerNode();
|
| }
|
|
|
|
|