| Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| index 17b847a79ca96e46bc1a90f271dfffb4bfe080f2..07ee1a2913f46159eb75bc6ea820fe260f577862 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -501,8 +501,10 @@ void HTMLInputElement::updateType() {
|
| }
|
| }
|
|
|
| + // UA Shadow tree was recreated. We need to set selection again. We do it
|
| + // later in order to avoid force layout.
|
| if (document().focusedElement() == this)
|
| - document().updateFocusAppearanceSoon(SelectionBehaviorOnFocus::Restore);
|
| + document().updateFocusAppearanceLater();
|
|
|
| setTextAsOfLastFormControlChangeEvent(value());
|
| setChangedSinceLastFormControlChangeEvent(false);
|
| @@ -854,9 +856,6 @@ void HTMLInputElement::attachLayoutTree(const AttachContext& context) {
|
|
|
| m_inputTypeView->startResourceLoading();
|
| m_inputType->countUsage();
|
| -
|
| - if (document().focusedElement() == this)
|
| - document().updateFocusAppearanceSoon(SelectionBehaviorOnFocus::Restore);
|
| }
|
|
|
| void HTMLInputElement::detachLayoutTree(const AttachContext& context) {
|
|
|