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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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/shadow/FlatTreeTraversal.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
index fea0857024500eb67076f4e8d4e1b47a87135ea9..06b2b29cee3bbf52179c973a42b3182b1a85eba4 100644
--- a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
@@ -279,7 +279,7 @@ bool FlatTreeTraversal::isDescendantOf(const Node& node, const Node& other)
{
assertPrecondition(node);
assertPrecondition(other);
- if (!hasChildren(other) || node.inShadowIncludingDocument() != other.inShadowIncludingDocument())
+ if (!hasChildren(other) || node.isConnected() != other.isConnected())
return false;
for (const ContainerNode* n = traverseParent(node); n; n = traverseParent(*n)) {
if (n == other)

Powered by Google App Engine
This is Rietveld 408576698