Index: Source/web/EditorClientImpl.cpp |
diff --git a/Source/web/EditorClientImpl.cpp b/Source/web/EditorClientImpl.cpp |
index e6e8eb79e786cd9229ba66ab13cb5e4850922bb6..26b8689bb8e3baa8475ba6efbc030aab46254ad0 100644 |
--- a/Source/web/EditorClientImpl.cpp |
+++ b/Source/web/EditorClientImpl.cpp |
@@ -151,13 +151,10 @@ void EditorClientImpl::toggleContinuousSpellChecking() |
} else { |
m_spellCheckThisFieldStatus = SpellCheckForcedOn; |
if (Frame* frame = m_webView->focusedWebCoreFrame()) { |
- if (unifiedTextCheckerEnabled(frame)) { |
- VisibleSelection frameSelection = frame->selection()->selection(); |
- // If a selection is in an editable element spell check its content. |
- if (Element* rootEditableElement = frameSelection.rootEditableElement()) { |
- VisibleSelection selection = VisibleSelection::selectionFromContentsOfNode(rootEditableElement); |
- frame->editor()->markMisspellingsAndBadGrammar(selection); |
- } |
+ VisibleSelection frameSelection = frame->selection()->selection(); |
+ // If a selection is in an editable element spell check its content. |
+ if (Element* rootEditableElement = frameSelection.rootEditableElement()) { |
+ frame->editor()->elementDidBeginEditing(rootEditableElement); |
} |
} |
} |