| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index 58ada7277f3b6b973e9ec7388aaada886650367e..60e9d6af7e1ea57f71c52112a213983d34ba5e0d 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1788,7 +1788,9 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection() {
|
| // Found a focusable parent node. Set the active match as the
|
| // selection and focus to the focusable node.
|
| frame()->selection().setSelection(
|
| - createVisibleSelection(activeMatchRange));
|
| + SelectionInDOMTree::Builder()
|
| + .setBaseAndExtent(activeMatchRange)
|
| + .build());
|
| frame()->document()->setFocusedElement(
|
| &element, FocusParams(SelectionBehaviorOnFocus::None,
|
| WebFocusTypeNone, nullptr));
|
| @@ -1817,7 +1819,9 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection() {
|
| // you'll have the last thing you found highlighted) and make sure that
|
| // we have nothing focused (otherwise you might have text selected but
|
| // a link focused, which is weird).
|
| - frame()->selection().setSelection(createVisibleSelection(activeMatchRange));
|
| + frame()->selection().setSelection(SelectionInDOMTree::Builder()
|
| + .setBaseAndExtent(activeMatchRange)
|
| + .build());
|
| frame()->document()->clearFocusedElement();
|
|
|
| // Finally clear the active match, for two reasons:
|
|
|