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

Unified Diff: third_party/WebKit/Source/core/html/forms/SearchInputType.cpp

Issue 2632323002: Move SearchInputType timers to frame-specific TaskRunnerTimer. (Closed)
Patch Set: work 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 | « third_party/WebKit/Source/core/html/forms/SearchInputType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
index 7ec269b6236e6a85eadb1ad5d06e79d6a77a30e3..97b1f0f7dadd8b80965d4558492002bf50e10b8d 100644
--- a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
@@ -48,7 +48,10 @@ using namespace HTMLNames;
inline SearchInputType::SearchInputType(HTMLInputElement& element)
: BaseTextInputType(element),
- m_searchEventTimer(this, &SearchInputType::searchEventTimerFired) {}
+ m_searchEventTimer(
+ TaskRunnerHelper::get(TaskType::UserInteraction, &element.document()),
+ this,
+ &SearchInputType::searchEventTimerFired) {}
InputType* SearchInputType::create(HTMLInputElement& element) {
return new SearchInputType(element);
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/SearchInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698