| 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 fbc80d105f01df950581fba0ebfee90b5b55f213..8e8edcd7b14c1c0b6e172c40ca490b29a3597c4f 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1674,7 +1674,7 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection()
|
| if (element.isFocusable()) {
|
| // Found a focusable parent node. Set the active match as the
|
| // selection and focus to the focusable node.
|
| - frame()->selection().setSelection(createVisibleSelectionDeprecated(activeMatchRange));
|
| + frame()->selection().setSelection(createVisibleSelection(activeMatchRange));
|
| frame()->document()->setFocusedElement(&element, FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone, nullptr));
|
| return;
|
| }
|
| @@ -1699,7 +1699,7 @@ 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(createVisibleSelectionDeprecated(activeMatchRange));
|
| + frame()->selection().setSelection(createVisibleSelection(activeMatchRange));
|
| frame()->document()->clearFocusedElement();
|
|
|
| // Finally clear the active match, for two reasons:
|
|
|