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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.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/HTMLSelectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
index bed8a4861b457aaf261e40493bf06a0e71d1e801..bf75ddf1713273e7dbfc0962f824227ae8abb7ae 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -37,7 +37,6 @@
#include "core/dom/AXObjectCache.h"
#include "core/dom/Attribute.h"
#include "core/dom/ElementTraversal.h"
-#include "core/dom/ExecutionContextTask.h"
#include "core/dom/MutationCallback.h"
#include "core/dom/MutationObserver.h"
#include "core/dom/MutationObserverInit.h"
@@ -895,9 +894,9 @@ void HTMLSelectElement::scrollToOption(HTMLOptionElement* option) {
// inserted before executing scrollToOptionTask().
m_optionToScrollTo = option;
if (!hasPendingTask)
- document().postTask(
- TaskType::UserInteraction, BLINK_FROM_HERE,
- createSameThreadTask(&HTMLSelectElement::scrollToOptionTask,
+ TaskRunnerHelper::get(TaskType::UserInteraction, &document())
+ ->postTask(BLINK_FROM_HERE,
+ WTF::bind(&HTMLSelectElement::scrollToOptionTask,
wrapPersistent(this)));
}

Powered by Google App Engine
This is Rietveld 408576698