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

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

Issue 2580243002: Specify TaskType of posted Task explicitly in forms (6) (Closed)
Patch Set: rebase Created 4 years 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/HTMLSelectElement.cpp ('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 dda850dc2fa0d96f9f3ec5f1ddcc1c497839279a..8366be3521b36ff3baba7e9d7be065a31ddcbb81 100644
--- a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
@@ -34,6 +34,7 @@
#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"
#include "core/html/HTMLInputElement.h"
@@ -104,8 +105,9 @@ void SearchInputType::startSearchEventTimer() {
if (!length) {
m_searchEventTimer.stop();
element().document().postTask(
- BLINK_FROM_HERE, createSameThreadTask(&HTMLInputElement::onSearch,
- wrapPersistent(&element())));
+ TaskType::UserInteraction, BLINK_FROM_HERE,
+ createSameThreadTask(&HTMLInputElement::onSearch,
+ wrapPersistent(&element())));
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698