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

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

Issue 659403006: DevTools: do not consider ? a shortcut while editing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined 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
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/ElementsPanel.js
diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js
index d23c4bbe83c7796a4048c2464e4f8b75b28caea6..9de1525ebea8bd79516b4d546772620e5db7b832 100644
--- a/Source/devtools/front_end/elements/ElementsPanel.js
+++ b/Source/devtools/front_end/elements/ElementsPanel.js
@@ -60,7 +60,7 @@ WebInspector.ElementsPanel = function()
crumbsContainer.id = "elements-crumbs";
this.crumbsElement = crumbsContainer.createChild("div", "crumbs");
this.crumbsElement.addEventListener("mousemove", this._mouseMovedInCrumbs.bind(this), false);
- this.crumbsElement.addEventListener("mouseout", this._mouseMovedOutOfCrumbs.bind(this), false);
+ this.crumbsElement.addEventListener("mouseleave", this._mouseMovedOutOfCrumbs.bind(this), false);
this.sidebarPanes = {};
this.sidebarPanes.platformFonts = new WebInspector.PlatformFontsSidebarPane();
@@ -709,7 +709,7 @@ WebInspector.ElementsPanel.prototype = {
_mouseMovedInCrumbs: function(event)
{
- var nodeUnderMouse = event.deepElementFromPoint();
+ var nodeUnderMouse = event.target;
var crumbElement = nodeUnderMouse.enclosingNodeOrSelfWithClass("crumb");
var node = /** @type {?WebInspector.DOMNode} */ (crumbElement ? crumbElement.representedObject : null);
if (node)
@@ -718,10 +718,6 @@ WebInspector.ElementsPanel.prototype = {
_mouseMovedOutOfCrumbs: function(event)
{
- var nodeUnderMouse = event.deepElementFromPoint();
- if (nodeUnderMouse && nodeUnderMouse.isDescendant(this.crumbsElement))
- return;
-
for (var i = 0; i < this._treeOutlines.length; ++i)
this._treeOutlines[i].domModel().hideDOMNodeHighlight();
},
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698