| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index ea754fa4e8a2305447a0cd40e17d2237865c23a4..7aa32281dd7db62ed796ab6b2277db5ac0d90400 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -3615,9 +3615,6 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
|
| focusChangeBlocked = true;
|
| newFocusedElement = nullptr;
|
| }
|
| - // Event handlers might make newFocusedElement dirty.
|
| - if (newFocusedElement)
|
| - updateLayoutTreeIgnorePendingStylesheets();
|
| }
|
|
|
| if (view()) {
|
| @@ -3629,6 +3626,8 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
|
| }
|
| }
|
|
|
| + if (newFocusedElement)
|
| + updateLayoutTreeIgnorePendingStylesheets();
|
| if (newFocusedElement && newFocusedElement->isFocusable()) {
|
| if (newFocusedElement->isRootEditableElement() && !acceptsEditingFocus(*newFocusedElement)) {
|
| // delegate blocks focus change
|
|
|