summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/editor_client_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index 6fe6a73..c4de103 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -126,6 +126,8 @@ bool EditorClientImpl::ShouldSpellcheckByDefault() {
const WebCore::Editor* editor = frame->editor();
if (!editor)
return false;
+ if (editor->spellCheckingEnabledInFocusedNode())
+ return true;
const WebCore::Document* document = frame->document();
if (!document)
return false;