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

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

Issue 2688473005: Replace Document::postTask with WebTaskRunner::postTask (Closed)
Patch Set: remove extra null-check: context on addConsoleMessage is now persistent Created 3 years, 10 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/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 97b1f0f7dadd8b80965d4558492002bf50e10b8d..8731c690fbe4c74d4055739aa7a662884d4d684c 100644
--- a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
@@ -33,7 +33,6 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/HTMLNames.h"
#include "core/InputTypeNames.h"
-#include "core/dom/ExecutionContextTask.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/events/KeyboardEvent.h"
@@ -107,10 +106,9 @@ void SearchInputType::startSearchEventTimer() {
if (!length) {
m_searchEventTimer.stop();
- element().document().postTask(
- TaskType::UserInteraction, BLINK_FROM_HERE,
- createSameThreadTask(&HTMLInputElement::onSearch,
- wrapPersistent(&element())));
+ TaskRunnerHelper::get(TaskType::UserInteraction, &element().document())
+ ->postTask(BLINK_FROM_HERE, WTF::bind(&HTMLInputElement::onSearch,
+ wrapPersistent(&element())));
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.cpp ('k') | third_party/WebKit/Source/web/ExternalPopupMenu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698