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

Unified Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 1180733005: [DevTools] Added missing items to live anchor's context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/devtools/front_end/elements/ElementsPanel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js
index 2335a75284daee94eb80b35568a4c0e6ce06fb6c..a79f85f7d841cad214b08d577fff06984535ff86 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -37,7 +37,6 @@ WebInspector.StylesSidebarPane = function(requestShowCallback)
WebInspector.ElementsSidebarPane.call(this, WebInspector.UIString("Styles"));
this.setMinimumSize(96, 26);
- this.element.addEventListener("contextmenu", this._contextMenuEventFired.bind(this), true);
WebInspector.moduleSetting("colorFormat").addChangeListener(this.update.bind(this));
WebInspector.moduleSetting("textEditorIndent").addChangeListener(this.update.bind(this));
@@ -255,18 +254,6 @@ WebInspector.StylesSidebarPane.prototype = {
},
/**
- * @param {!Event} event
- */
- _contextMenuEventFired: function(event)
- {
- // We start editing upon click -> default navigation to resources panel is not available
- // Hence we add a soft context menu for hrefs.
- var contextMenu = new WebInspector.ContextMenu(event);
- contextMenu.appendApplicableItems(/** @type {!Node} */ (event.target));
- contextMenu.show();
- },
-
- /**
* @param {string} propertyName
*/
tracePropertyName: function(propertyName)
« no previous file with comments | « Source/devtools/front_end/elements/ElementsPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698