| Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| index bf9046170421b5fc82544e3a3c0b7dc67f232a37..76e3c23b66d09c6313aff2031066b40478161b7e 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| @@ -188,7 +188,7 @@ void HTMLFormControlElement::disabledAttributeChanged()
|
| pseudoStateChanged(CSSSelector::PseudoEnabled);
|
| if (layoutObject())
|
| LayoutTheme::theme().controlStateChanged(*layoutObject(), EnabledControlState);
|
| - if (isDisabledFormControl() && treeScope().adjustedFocusedElement() == this) {
|
| + if (isDisabledFormControl() && treeScopeOrDocument().adjustedFocusedElement() == this) {
|
| // We might want to call blur(), but it's dangerous to dispatch events
|
| // here.
|
| document().setNeedsFocusedElementCheck();
|
|
|