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

Unified Diff: Source/devtools/front_end/ui/ContextMenu.js

Issue 663083004: [DevTools] Remove remaining usages of global properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments Created 6 years, 2 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: Source/devtools/front_end/ui/ContextMenu.js
diff --git a/Source/devtools/front_end/ui/ContextMenu.js b/Source/devtools/front_end/ui/ContextMenu.js
index dd2efc3e4c4698d01e81759d3dd7aa9cafd4b89f..1dc4a62a06074eb90f1d02daba54aeee730acd55 100644
--- a/Source/devtools/front_end/ui/ContextMenu.js
+++ b/Source/devtools/front_end/ui/ContextMenu.js
@@ -294,7 +294,7 @@ WebInspector.ContextMenu.prototype = {
WebInspector._contextMenu = this;
if (WebInspector.ContextMenu._useSoftMenu || InspectorFrontendHost.isHostedMode()) {
var softMenu = new WebInspector.SoftContextMenu(menuObject, this._itemSelected.bind(this));
- softMenu.show(this._x, this._y);
+ softMenu.show(this._event.target.ownerDocument, this._x, this._y);
} else {
InspectorFrontendHost.showContextMenuAtPoint(this._x, this._y, menuObject);
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ContextMenuCleared, this._menuCleared, this);
« no previous file with comments | « Source/devtools/front_end/toolbox_bootstrap/Toolbox.js ('k') | Source/devtools/front_end/ui/DOMExtension.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698