| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index c3a1e143cca4358eb8619f5b7f574d4ce9154ec1..16bd6a1194a9d346840708bb0922770b74358f58 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -3218,7 +3218,10 @@ bool Element::isSpellCheckingEnabled() const
|
| }
|
| }
|
|
|
| - return true;
|
| + if (!document().page())
|
| + return true;
|
| +
|
| + return document().page()->settings().spellCheckEnabledByDefault();
|
| }
|
|
|
| #if DCHECK_IS_ON()
|
|
|