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

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

Issue 339853003: DevTools: Remove unused isAncestor parameter from findTreeElement in TreeOutline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | Source/devtools/front_end/resources/ResourcesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/ElementsTreeOutline.js
diff --git a/Source/devtools/front_end/elements/ElementsTreeOutline.js b/Source/devtools/front_end/elements/ElementsTreeOutline.js
index 1e91339b01318cf04e1e654d1b2c20cfcc1a4617..38e66d51700fd8efb94e875ce4995882c454d056 100644
--- a/Source/devtools/front_end/elements/ElementsTreeOutline.js
+++ b/Source/devtools/front_end/elements/ElementsTreeOutline.js
@@ -304,20 +304,15 @@ WebInspector.ElementsTreeOutline.prototype = {
*/
findTreeElement: function(node)
{
- function isAncestorNode(ancestor, node)
- {
- return ancestor.isAncestor(node);
- }
-
function parentNode(node)
{
return node.parentNode;
}
- var treeElement = TreeOutline.prototype.findTreeElement.call(this, node, isAncestorNode, parentNode);
+ var treeElement = TreeOutline.prototype.findTreeElement.call(this, node, parentNode);
if (!treeElement && node.nodeType() === Node.TEXT_NODE) {
// The text node might have been inlined if it was short, so try to find the parent element.
- treeElement = TreeOutline.prototype.findTreeElement.call(this, node.parentNode, isAncestorNode, parentNode);
+ treeElement = TreeOutline.prototype.findTreeElement.call(this, node.parentNode, parentNode);
}
return treeElement;
« no previous file with comments | « no previous file | Source/devtools/front_end/resources/ResourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698