Chromium Code Reviews| 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 a70da0b7f8cd17c79bc6ff87a8f3bde279ee877f..bf0505efe4e7dbcabc2e2eb44fa432d10d22ed90 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() |