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

Unified Diff: third_party/WebKit/Source/web/ExternalPopupMenu.cpp

Issue 2589493003: Specify TaskType of posted Task explicitly in popup UIs (8) (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/web/ExternalPopupMenu.cpp
diff --git a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
index f49d55a7380b6791edfd726680b877bad67e55d3..4fa600c2f81abe70f24a4370f4389a025614f785 100644
--- a/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
+++ b/third_party/WebKit/Source/web/ExternalPopupMenu.cpp
@@ -32,6 +32,7 @@
#include "core/dom/ExecutionContextTask.h"
#include "core/dom/NodeComputedStyle.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
@@ -146,8 +147,9 @@ void ExternalPopupMenu::updateFromElement(UpdateReason reason) {
return;
m_needsUpdate = true;
m_ownerElement->document().postTask(
- BLINK_FROM_HERE, createSameThreadTask(&ExternalPopupMenu::update,
- wrapPersistent(this)));
+ TaskType::UserInteraction, BLINK_FROM_HERE,
+ createSameThreadTask(&ExternalPopupMenu::update,
+ wrapPersistent(this)));
break;
case ByStyleChange:
« no previous file with comments | « third_party/WebKit/Source/modules/notifications/Notification.cpp ('k') | third_party/WebKit/Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698