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

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: rebased 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 dfa90ecdc8a1433b03f46907ea335c925d9d4b49..47c935229605c257c963161ed96188cf09757a8c 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -881,7 +881,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