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

Unified Diff: Source/devtools/front_end/DOMPresentationUtils.js

Issue 219573002: DevTools: follow up to r170453, linkifier binding fixed, annotateion added. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/DOMPresentationUtils.js
diff --git a/Source/devtools/front_end/DOMPresentationUtils.js b/Source/devtools/front_end/DOMPresentationUtils.js
index 5913219d21deda6e4dbefd3772fc66a35b6f01c0..7102b5ae81a738f2a98b6754d6d104751b64e1b8 100644
--- a/Source/devtools/front_end/DOMPresentationUtils.js
+++ b/Source/devtools/front_end/DOMPresentationUtils.js
@@ -90,6 +90,9 @@ WebInspector.DOMPresentationUtils.createSpansForNodeTitle = function(container,
container.createChild("span", "webkit-html-attribute-name").textContent = match[3];
}
+/**
+ * @param {!WebInspector.DOMNode} node
+ */
WebInspector.DOMPresentationUtils.linkifyNodeReference = function(node)
{
var link = document.createElement("span");
@@ -97,7 +100,7 @@ WebInspector.DOMPresentationUtils.linkifyNodeReference = function(node)
WebInspector.DOMPresentationUtils.decorateNodeLabel(node, link);
link.addEventListener("click", node.reveal.bind(node), false);
- link.addEventListener("mouseover", node.highlight.bind(node.id), false);
+ link.addEventListener("mouseover", node.highlight.bind(node, undefined, undefined), false);
link.addEventListener("mouseout", node.domModel().hideDOMNodeHighlight.bind(node.domModel()), false);
return link;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698