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

Unified Diff: third_party/WebKit/Source/web/TextFinder.cpp

Issue 2645463002: Move TextFinder's deferred scoping work to the unspeced timer task queue (Closed)
Patch Set: . Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/TextFinder.cpp
diff --git a/third_party/WebKit/Source/web/TextFinder.cpp b/third_party/WebKit/Source/web/TextFinder.cpp
index d9c0a274ebd2e2e8d9c016e0b08a63b184088cde..77a2598f053708a10058ff2a3fcbeb51e068e9fb 100644
--- a/third_party/WebKit/Source/web/TextFinder.cpp
+++ b/third_party/WebKit/Source/web/TextFinder.cpp
@@ -31,6 +31,7 @@
#include "web/TextFinder.h"
#include "core/dom/Range.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/Editor.h"
#include "core/editing/VisibleSelection.h"
@@ -84,7 +85,10 @@ class TextFinder::DeferredScopeStringMatches
int identifier,
const WebString& searchText,
const WebFindOptions& options)
- : m_timer(this, &DeferredScopeStringMatches::doTimeout),
+ : m_timer(TaskRunnerHelper::get(TaskType::UnspecedTimer,
+ textFinder->ownerFrame().frame()),
+ this,
+ &DeferredScopeStringMatches::doTimeout),
m_textFinder(textFinder),
m_identifier(identifier),
m_searchText(searchText),
@@ -97,7 +101,7 @@ class TextFinder::DeferredScopeStringMatches
m_options);
}
- Timer<DeferredScopeStringMatches> m_timer;
+ TaskRunnerTimer<DeferredScopeStringMatches> m_timer;
Member<TextFinder> m_textFinder;
const int m_identifier;
const WebString m_searchText;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698