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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

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/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 897430f3629b36d3e6dd7e56c735839b6d37d5f1..832a32753ea3be8d7e1d126a70b68b588392669c 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -612,7 +612,7 @@ inline static ShadowRoot* oldestShadowRootFor(const Node* node)
}
#endif
-inline static Node& rootInTreeOfTrees(const Node& node)
+inline static Node& rootInComposedTree(const Node& node)
{
if (node.inDocument())
return node.document();
@@ -628,7 +628,7 @@ inline static Node& rootInTreeOfTrees(const Node& node)
#if ENABLE(ASSERT)
bool Node::needsDistributionRecalc() const
{
- return rootInTreeOfTrees(*this).childNeedsDistributionRecalc();
+ return rootInComposedTree(*this).childNeedsDistributionRecalc();
}
#endif
@@ -639,7 +639,7 @@ void Node::updateDistribution()
return;
TRACE_EVENT0("blink", "Node::updateDistribution");
ScriptForbiddenScope forbidScript;
- Node& root = rootInTreeOfTrees(*this);
+ Node& root = rootInComposedTree(*this);
if (root.childNeedsDistributionRecalc())
root.recalcDistribution();
}

Powered by Google App Engine
This is Rietveld 408576698