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

Unified Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1883083002: Introduce Node::containingTreeScope(), which asserts that the node's root is a tree scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 8 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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 34029e6f47d00bc385d2ee86335dc94735f9c24e..6c236c8471e2b938dcd2117d501ce4d2bb8c1f88 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -878,7 +878,7 @@ inline void Node::removedFrom(ContainerNode* insertionPoint)
clearFlag(InDocumentFlag);
insertionPoint->document().decrementNodeCount();
}
- if (isInShadowTree() && !treeScope().rootNode().isShadowRoot())
+ if (isInShadowTree() && !rootTreeScope().rootNode().isShadowRoot())
clearFlag(IsInShadowTreeFlag);
if (AXObjectCache* cache = document().existingAXObjectCache())
cache->remove(this);

Powered by Google App Engine
This is Rietveld 408576698