| Index: third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/TextControlElement.cpp b/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| index 71f9b7796e538155913811dbe66603e9239174dd..e4cc3c8d29ae8cf02621afd06f4c847ff6f88300 100644
|
| --- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
|
| @@ -37,6 +37,7 @@
|
| #include "core/editing/iterators/CharacterIterator.h"
|
| #include "core/editing/iterators/TextIterator.h"
|
| #include "core/editing/serializers/Serialization.h"
|
| +#include "core/editing/spellcheck/SpellChecker.h"
|
| #include "core/events/Event.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/UseCounter.h"
|
| @@ -747,6 +748,12 @@ void TextControlElement::parseAttribute(
|
| } else {
|
| HTMLFormControlElementWithState::parseAttribute(params);
|
| }
|
| +
|
| + if ((params.name == disabledAttr || params.name == readonlyAttr) &&
|
| + (params.oldValue.isNull() != params.newValue.isNull()) &&
|
| + isTextControl() && isDisabledOrReadOnly() && document().frame()) {
|
| + document().frame()->spellChecker().cancelCheck();
|
| + }
|
| }
|
|
|
| bool TextControlElement::lastChangeWasUserEdit() const {
|
|
|