| 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 a6fe87a40f7c79897252a8137154d9adbfcb923e..a95ed79ed218a5179c3dcfa2b7e5364534618d74 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -3623,9 +3623,6 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
|
| focusChangeBlocked = true;
|
| newFocusedElement = nullptr;
|
| }
|
| - // Event handlers might make newFocusedElement dirty.
|
| - if (newFocusedElement)
|
| - updateLayoutTreeIgnorePendingStylesheets();
|
| }
|
|
|
| if (view()) {
|
| @@ -3637,6 +3634,8 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
|
| }
|
| }
|
|
|
| + if (newFocusedElement)
|
| + updateLayoutTreeIgnorePendingStylesheets();
|
| if (newFocusedElement && newFocusedElement->isFocusable()) {
|
| if (newFocusedElement->isRootEditableElement() && !acceptsEditingFocus(*newFocusedElement)) {
|
| // delegate blocks focus change
|
|
|