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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.cpp

Issue 2740603003: Hide SpellCheckRequest from other classes in editing/spellcheck (Closed)
Patch Set: Created 3 years, 9 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/editing/spellcheck/HotModeSpellCheckRequester.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.cpp b/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.cpp
index 3b106ceba3650c104d0a449ab02ff6dc54518adb..1b992a37c1e90aebdd5cbfffbb47f867963f2882 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.cpp
@@ -100,9 +100,9 @@ void HotModeSpellCheckRequester::checkSpellingAt(const Position& position) {
if (!shouldCheckRootEditableInHotMode(*rootEditable, position))
return;
- SpellCheckRequest* request = SpellCheckRequest::create(
- calculateHotModeCheckingRange(*rootEditable, position));
- m_requester->requestCheckingFor(request);
+ const EphemeralRange& checkingRange =
+ calculateHotModeCheckingRange(*rootEditable, position);
+ m_requester->requestCheckingFor(checkingRange);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698