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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js

Issue 1675163002: Rename ComposedTree to FlatTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 10 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
Index: third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js b/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
index ab9c30b587020ae764be1d379c9405a280fc0bdb..927d050a3dc0006d1e5ca9ff4f6261e85565ad7f 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
@@ -256,39 +256,39 @@ function dumpComposedShadowTree(node, indent)
indent = indent || "";
var output = indent + dumpNode(node) + "\n";
var child;
- for (child = internals.firstChildInComposedTree(node); child; child = internals.nextSiblingInComposedTree(child))
+ for (child = internals.firstChildInFlatTree(node); child; child = internals.nextSiblingInFlatTree(child))
output += dumpComposedShadowTree(child, indent + "\t");
return output;
}
-function lastNodeInComposedTree(root)
+function lastNodeInFlatTree(root)
{
var lastNode = root;
- while (internals.lastChildInComposedTree(lastNode))
- lastNode = internals.lastChildInComposedTree(lastNode);
+ while (internals.lastChildInFlatTree(lastNode))
+ lastNode = internals.lastChildInFlatTree(lastNode);
return lastNode;
}
function showComposedShadowTreeByTraversingInForward(root)
{
var node = root;
- var last = lastNodeInComposedTree(root);
+ var last = lastNodeInFlatTree(root);
while (node) {
debug(dumpNode(node));
if (node == last)
break;
- node = internals.nextInComposedTree(node);
+ node = internals.nextInFlatTree(node);
}
}
function showComposedShadowTreeByTraversingInBackward(root)
{
- var node = lastNodeInComposedTree(root);
+ var node = lastNodeInFlatTree(root);
while (node) {
debug(dumpNode(node));
if (node == root)
break;
- node = internals.previousInComposedTree(node);
+ node = internals.previousInFlatTree(node);
}
}
@@ -308,7 +308,7 @@ function showComposedShadowTree(node)
function showNextNode(node)
{
- var next = internals.nextInComposedTree(node);
+ var next = internals.nextInFlatTree(node);
debug('Next node of [' + dumpNode(node) + '] is [' + dumpNode(next) + ']');
}

Powered by Google App Engine
This is Rietveld 408576698