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