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

Unified Diff: third_party/WebKit/Source/web/ExternalPopupMenu.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/web/ExternalPopupMenu.cpp
diff --git a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
index 3b1a991e00b949f3e86e3092e5682258e81daf01..014ef2260fbb22d77d78dae854e021a70833aa4d 100644
--- a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
+++ b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
@@ -30,7 +30,6 @@
#include "web/ExternalPopupMenu.h"
-#include "core/dom/ExecutionContextTask.h"
#include "core/dom/NodeComputedStyle.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/FrameHost.h"
@@ -147,10 +146,10 @@ void ExternalPopupMenu::updateFromElement(UpdateReason reason) {
if (m_needsUpdate)
return;
m_needsUpdate = true;
- m_ownerElement->document().postTask(
- TaskType::UserInteraction, BLINK_FROM_HERE,
- createSameThreadTask(&ExternalPopupMenu::update,
- wrapPersistent(this)));
+ TaskRunnerHelper::get(TaskType::UserInteraction,
+ &m_ownerElement->document())
+ ->postTask(BLINK_FROM_HERE, WTF::bind(&ExternalPopupMenu::update,
+ wrapPersistent(this)));
break;
case ByStyleChange:
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/SearchInputType.cpp ('k') | third_party/WebKit/Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698