| 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 2fe90bb6b3b9d7e53f4091b9e7ca35d99aeef42a..a1853e5f6ba5d434e0d83ec330bc6eb61118e0f7 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1673,7 +1673,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(VisibleSelection(activeMatchRange));
|
| + frame()->selection().setSelection(createVisibleSelectionDeprecated(activeMatchRange));
|
| frame()->document()->setFocusedElement(&element, FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone, nullptr));
|
| return;
|
| }
|
| @@ -1698,7 +1698,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(VisibleSelection(activeMatchRange));
|
| + frame()->selection().setSelection(createVisibleSelectionDeprecated(activeMatchRange));
|
| frame()->document()->clearFocusedElement();
|
|
|
| // Finally clear the active match, for two reasons:
|
|
|