| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 82015687ef949f185db4a99c480715b1d6f2ed9f..b037ec21b33439a53a803a462ab39233fe597f6c 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -2094,7 +2094,7 @@ void Element::updateFocusAppearance(bool /*restorePreviousSelection*/)
|
| VisibleSelection newSelection = VisibleSelection(firstPositionInOrBeforeNode(this), 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::DoNotSetFocus);
|
| + frame->selection().setSelection(newSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | FrameSelection::DoNotSetFocus);
|
| frame->selection().revealSelection();
|
| } else if (renderer() && !renderer()->isWidget())
|
| renderer()->scrollRectToVisible(boundingBox());
|
|
|