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

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

Issue 2612713002: Move core/editing timer to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 12 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/SpellCheckRequester.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
index 0b2b90032f2af4fdf4e8370937dbcd7aef2b1118..112ad5a083ab7695e41038857ee311e71b36518e 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
@@ -27,6 +27,7 @@
#include "core/dom/Document.h"
#include "core/dom/Node.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/editing/EditingUtilities.h"
#include "core/editing/markers/DocumentMarkerController.h"
#include "core/editing/spellcheck/SpellChecker.h"
@@ -138,6 +139,7 @@ SpellCheckRequester::SpellCheckRequester(LocalFrame& frame)
m_lastRequestSequence(0),
m_lastProcessedSequence(0),
m_timerToProcessQueuedRequest(
+ TaskRunnerHelper::get(TaskType::UnspecedTimer, &frame),
this,
&SpellCheckRequester::timerFiredToProcessQueuedRequest) {}

Powered by Google App Engine
This is Rietveld 408576698