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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.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
Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
index 725463a8da63b79f716f3aa1756d7fd523221f3a..dcd06dbfe0d008f7eb2c1745279827395099761d 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -46,6 +46,7 @@
#include "core/dom/NodeComputedStyle.h"
#include "core/dom/NodeListsNodeData.h"
#include "core/dom/NodeTraversal.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/GestureEvent.h"
#include "core/events/KeyboardEvent.h"
#include "core/events/MouseEvent.h"
@@ -897,7 +898,7 @@ void HTMLSelectElement::scrollToOption(HTMLOptionElement* option) {
m_optionToScrollTo = option;
if (!hasPendingTask)
document().postTask(
- BLINK_FROM_HERE,
+ TaskType::UserInteraction, BLINK_FROM_HERE,
createSameThreadTask(&HTMLSelectElement::scrollToOptionTask,
wrapPersistent(this)));
}

Powered by Google App Engine
This is Rietveld 408576698