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 a7f51f704a679c10db793f474762e3b0348a759a..fc9cd282c4bca02595e23b690c507f623ad16b03 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.cpp |
+++ b/third_party/WebKit/Source/core/dom/Node.cpp |
@@ -682,7 +682,7 @@ void Node::setIsLink(bool isLink) |
void Node::setNeedsStyleInvalidation() |
{ |
- DCHECK(isElementNode()); |
+ DCHECK(isElementNode() || isShadowRoot()); |
setFlag(NeedsStyleInvalidationFlag); |
markAncestorsWithChildNeedsStyleInvalidation(); |
} |