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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2251693003: Rename "ContinuousSpellChecking" to "SpellChecking" in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index b00e87efbe3275d25de1b787730f7f61f66a34e2..44aa021f4af8785fc3a59f61bc89417244c279ea 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -233,8 +233,8 @@ void Internals::resetToConsistentState(Page* page)
page->setPageScaleFactor(1);
page->deprecatedLocalMainFrame()->view()->layoutViewportScrollableArea()->setScrollPosition(IntPoint(0, 0), ProgrammaticScroll);
overrideUserPreferredLanguages(Vector<AtomicString>());
- if (!page->deprecatedLocalMainFrame()->spellChecker().isContinuousSpellCheckingEnabled())
- page->deprecatedLocalMainFrame()->spellChecker().toggleContinuousSpellChecking();
+ if (!page->deprecatedLocalMainFrame()->spellChecker().isSpellCheckingEnabled())
+ page->deprecatedLocalMainFrame()->spellChecker().toggleSpellCheckingEnabled();
if (page->deprecatedLocalMainFrame()->editor().isOverwriteModeEnabled())
page->deprecatedLocalMainFrame()->editor().toggleOverwriteModeEnabled();
@@ -1548,13 +1548,13 @@ bool Internals::hasSpellingMarker(Document* document, int from, int length)
return document->frame()->spellChecker().selectionStartHasMarkerFor(DocumentMarker::Spelling, from, length);
}
-void Internals::setContinuousSpellCheckingEnabled(bool enabled)
+void Internals::setSpellCheckingEnabled(bool enabled)
{
if (!contextDocument() || !contextDocument()->frame())
return;
- if (enabled != contextDocument()->frame()->spellChecker().isContinuousSpellCheckingEnabled())
- contextDocument()->frame()->spellChecker().toggleContinuousSpellChecking();
+ if (enabled != contextDocument()->frame()->spellChecker().isSpellCheckingEnabled())
+ contextDocument()->frame()->spellChecker().toggleSpellCheckingEnabled();
}
bool Internals::canHyphenate(const AtomicString& locale)
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698