Index: Source/web/SpellCheckerClientImpl.cpp |
diff --git a/Source/web/SpellCheckerClientImpl.cpp b/Source/web/SpellCheckerClientImpl.cpp |
index 08b6fe7dddcc7ff7f476831c423fa946958cb857..117cb087013a9fcfd6b5d0065fe11d3ac57ada26 100644 |
--- a/Source/web/SpellCheckerClientImpl.cpp |
+++ b/Source/web/SpellCheckerClientImpl.cpp |
@@ -54,9 +54,9 @@ bool SpellCheckerClientImpl::shouldSpellcheckByDefault() |
{ |
// Spellcheck should be enabled for all editable areas (such as textareas, |
// contentEditable regions, designMode docs and inputs). |
- if (!m_webView->focusedWebCoreFrame()->isLocalFrame()) |
+ if (!m_webView->focusedCoreFrame()->isLocalFrame()) |
return false; |
- const LocalFrame* frame = toLocalFrame(m_webView->focusedWebCoreFrame()); |
+ const LocalFrame* frame = toLocalFrame(m_webView->focusedCoreFrame()); |
if (!frame) |
return false; |
if (frame->spellChecker().isSpellCheckingEnabledInFocusedNode()) |
@@ -102,8 +102,8 @@ void SpellCheckerClientImpl::toggleContinuousSpellChecking() |
} |
} else { |
m_spellCheckThisFieldStatus = SpellCheckForcedOn; |
- if (m_webView->focusedWebCoreFrame()->isLocalFrame()) { |
- if (LocalFrame* frame = toLocalFrame(m_webView->focusedWebCoreFrame())) { |
+ if (m_webView->focusedCoreFrame()->isLocalFrame()) { |
+ if (LocalFrame* frame = toLocalFrame(m_webView->focusedCoreFrame())) { |
VisibleSelection frameSelection = frame->selection().selection(); |
// If a selection is in an editable element spell check its content. |
if (Element* rootEditableElement = frameSelection.rootEditableElement()) { |
@@ -116,13 +116,13 @@ void SpellCheckerClientImpl::toggleContinuousSpellChecking() |
bool SpellCheckerClientImpl::isGrammarCheckingEnabled() |
{ |
- const LocalFrame* frame = toLocalFrame(m_webView->focusedWebCoreFrame()); |
+ const LocalFrame* frame = toLocalFrame(m_webView->focusedCoreFrame()); |
return frame && frame->settings() && (frame->settings()->asynchronousSpellCheckingEnabled() || frame->settings()->unifiedTextCheckerEnabled()); |
} |
bool SpellCheckerClientImpl::shouldEraseMarkersAfterChangeSelection(TextCheckingType type) const |
{ |
- const Frame* frame = m_webView->focusedWebCoreFrame(); |
+ const Frame* frame = m_webView->focusedCoreFrame(); |
return !frame || !frame->settings() || (!frame->settings()->asynchronousSpellCheckingEnabled() && !frame->settings()->unifiedTextCheckerEnabled()); |
} |