| 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 c24eb4170bbab3d22b2581b842b399250f664c4c..3110e3b705270001dbf69db51797d846687ff1bd 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -3526,6 +3526,8 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
|
| m_focusedElement = newFocusedElement;
|
|
|
| m_focusedElement->setFocus(true);
|
| + cancelFocusAppearanceUpdate();
|
| + m_focusedElement->updateFocusAppearance(params.selectionBehavior);
|
|
|
| // Dispatch the focus event and let the node do any other focus related activities (important for text fields)
|
| // If page lost focus, event will be dispatched on page focus, don't duplicate
|
|
|