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

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

Issue 1684533002: Rename "tree of trees" to "composed tree". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 342730b6951534ad0b4c2c30af2afa2bc02676d2..54800d471f4d22ba8fafd586a48a8bbd6c5e3fdf 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
@@ -124,7 +124,7 @@ function isIframeElement(element)
// You can spefify youngerShadowRoot by consecutive slashes.
// See LayoutTests/fast/dom/shadow/get-element-by-id-in-shadow-root.html for actual usages.
-function getNodeInTreeOfTrees(path)
+function getNodeInComposedTree(path)
{
var ids = path.split('/');
var node = document.getElementById(ids[0]);
@@ -195,7 +195,7 @@ function innermostActiveElement(element)
function isInnermostActiveElement(id)
{
- var element = getNodeInTreeOfTrees(id);
+ var element = getNodeInComposedTree(id);
if (!element) {
debug('FAIL: There is no such element with id: '+ from);
return false;
@@ -209,7 +209,7 @@ function isInnermostActiveElement(id)
function shouldNavigateFocus(from, to, direction)
{
debug('Should move from ' + from + ' to ' + to + ' in ' + direction);
- var fromElement = getNodeInTreeOfTrees(from);
+ var fromElement = getNodeInComposedTree(from);
if (!fromElement) {
debug('FAIL: There is no such element with id: '+ from);
return;
@@ -314,7 +314,7 @@ function showNextNode(node)
function backgroundColorOf(selector)
{
- return window.getComputedStyle(getNodeInTreeOfTrees(selector)).backgroundColor;
+ return window.getComputedStyle(getNodeInComposedTree(selector)).backgroundColor;
}
function backgroundColorShouldBe(selector, expected)

Powered by Google App Engine
This is Rietveld 408576698