Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 11fbccd74a3891a4971d9f1d6f1619055fc09aa7..c8f5fa0578425a47789a8b9d565020d7ce663cee 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1768,8 +1768,8 @@ void Element::childrenChanged(const ChildrenChange& change) |
ContainerNode::childrenChanged(change); |
checkForEmptyStyleChange(); |
- if (!change.byParser) |
- checkForSiblingStyleChanges(change.type == ChildRemoved ? SiblingRemoved : Other, change.siblingBeforeChange, change.siblingAfterChange); |
+ if (!change.byParser && change.isChildElementChange()) |
+ checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAfterChange); |
if (ElementShadow* shadow = this->shadow()) |
shadow->setNeedsDistributionRecalc(); |