| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index eef8d64119276eeea4485bd17066d9bd44fd59dc..d9cc6a0a03a7d6926b5d986a49b049b359351239 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -2478,7 +2478,7 @@ void Element::updateFocusAppearance(SelectionBehaviorOnFocus selectionBehavior)
|
| return;
|
|
|
| // FIXME: We should restore the previous selection if there is one.
|
| - VisibleSelection newSelection = VisibleSelection(firstPositionInOrBeforeNode(this), TextAffinity::Downstream);
|
| + VisibleSelection newSelection = createVisibleSelectionDeprecated(firstPositionInOrBeforeNode(this), TextAffinity::Downstream);
|
| // Passing DoNotSetFocus as this function is called after FocusController::setFocusedElement()
|
| // and we don't want to change the focus to a new Element.
|
| frame->selection().setSelection(newSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | FrameSelection::DoNotSetFocus);
|
|
|