OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
5 * Copyright (C) 2009 Joseph Pecoraro | 5 * Copyright (C) 2009 Joseph Pecoraro |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * | 10 * |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 */ | 96 */ |
97 WebInspector.DOMPresentationUtils.linkifyNodeReference = function(node) | 97 WebInspector.DOMPresentationUtils.linkifyNodeReference = function(node) |
98 { | 98 { |
99 if (!node) | 99 if (!node) |
100 return document.createTextNode(WebInspector.UIString("<node>")); | 100 return document.createTextNode(WebInspector.UIString("<node>")); |
101 | 101 |
102 var link = document.createElement("span"); | 102 var link = document.createElement("span"); |
103 link.className = "node-link"; | 103 link.className = "node-link"; |
104 WebInspector.DOMPresentationUtils.decorateNodeLabel(node, link); | 104 WebInspector.DOMPresentationUtils.decorateNodeLabel(node, link); |
105 | 105 |
106 link.addEventListener("click", node.reveal.bind(node), false); | 106 link.addEventListener("click", WebInspector.Revealer.reveal.bind(WebInspecto
r.Revealer, node, undefined), false); |
107 link.addEventListener("mouseover", node.highlight.bind(node, undefined, unde
fined), false); | 107 link.addEventListener("mouseover", node.highlight.bind(node, undefined, unde
fined), false); |
108 link.addEventListener("mouseout", node.domModel().hideDOMNodeHighlight.bind(
node.domModel()), false); | 108 link.addEventListener("mouseout", node.domModel().hideDOMNodeHighlight.bind(
node.domModel()), false); |
109 | 109 |
110 return link; | 110 return link; |
111 } | 111 } |
112 | 112 |
113 /** | 113 /** |
114 * @param {string} imageURL | 114 * @param {string} imageURL |
115 * @param {!WebInspector.Target} target | 115 * @param {!WebInspector.Target} target |
116 * @param {boolean} showDimensions | 116 * @param {boolean} showDimensions |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 WebInspector.DOMNodePathStep.prototype = { | 510 WebInspector.DOMNodePathStep.prototype = { |
511 /** | 511 /** |
512 * @return {string} | 512 * @return {string} |
513 */ | 513 */ |
514 toString: function() | 514 toString: function() |
515 { | 515 { |
516 return this.value; | 516 return this.value; |
517 } | 517 } |
518 } | 518 } |
OLD | NEW |