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

Unified Diff: third_party/WebKit/Source/web/PopupMenuImpl.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
« no previous file with comments | « third_party/WebKit/Source/web/ExternalPopupMenu.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/web/PopupMenuImpl.cpp
diff --git a/third_party/WebKit/Source/web/PopupMenuImpl.cpp b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
index 97bf482a6c9ff11ee298c762097a9b012dd0367e..9d4a06a0e3e624f5e7b8003546b9e02586468159 100644
--- a/third_party/WebKit/Source/web/PopupMenuImpl.cpp
+++ b/third_party/WebKit/Source/web/PopupMenuImpl.cpp
@@ -7,7 +7,6 @@
#include "core/HTMLNames.h"
#include "core/css/CSSFontSelector.h"
#include "core/dom/ElementTraversal.h"
-#include "core/dom/ExecutionContextTask.h"
#include "core/dom/NodeComputedStyle.h"
#include "core/dom/StyleEngine.h"
#include "core/dom/TaskRunnerHelper.h"
@@ -503,9 +502,9 @@ void PopupMenuImpl::updateFromElement(UpdateReason) {
if (m_needsUpdate)
return;
m_needsUpdate = true;
- ownerElement().document().postTask(
- TaskType::UserInteraction, BLINK_FROM_HERE,
- createSameThreadTask(&PopupMenuImpl::update, wrapPersistent(this)));
+ TaskRunnerHelper::get(TaskType::UserInteraction, &ownerElement().document())
+ ->postTask(BLINK_FROM_HERE,
+ WTF::bind(&PopupMenuImpl::update, wrapPersistent(this)));
}
void PopupMenuImpl::update() {
« no previous file with comments | « third_party/WebKit/Source/web/ExternalPopupMenu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698