Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1775)

Unified Diff: Source/web/SpellCheckerClientImpl.cpp

Issue 474143002: Rename some functions of which names contain 'WebCore.' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/RemoteFrameClient.cpp ('k') | Source/web/WebFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « Source/web/RemoteFrameClient.cpp ('k') | Source/web/WebFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698