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 213c3ae385d8661c44184f48775d02cdb8a4503a..f048911844e1bf668fb29bad33b6821078b640b7 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.h |
+++ b/third_party/WebKit/Source/core/dom/Element.h |
@@ -804,7 +804,7 @@ inline Node::InsertionNotificationRequest Node::insertedInto(ContainerNode* inse |
{ |
ASSERT(!childNeedsStyleInvalidation()); |
ASSERT(!needsStyleInvalidation()); |
- ASSERT(insertionPoint->inDocument() || isContainerNode()); |
+ ASSERT(insertionPoint->inDocument() || insertionPoint->isInShadowTree() || isContainerNode()); |
if (insertionPoint->inDocument()) { |
setFlag(InDocumentFlag); |
insertionPoint->document().incrementNodeCount(); |