| Index: Source/core/dom/shadow/ShadowRoot.cpp
|
| diff --git a/Source/core/dom/shadow/ShadowRoot.cpp b/Source/core/dom/shadow/ShadowRoot.cpp
|
| index 74ec90c20ca3258f10b964e65e8f0e7e5c973692..e78d269c3b213f08f42a028edb26097af779b157 100644
|
| --- a/Source/core/dom/shadow/ShadowRoot.cpp
|
| +++ b/Source/core/dom/shadow/ShadowRoot.cpp
|
| @@ -208,7 +208,8 @@ void ShadowRoot::childrenChanged(const ChildrenChange& change)
|
| {
|
| ContainerNode::childrenChanged(change);
|
|
|
| - checkForSiblingStyleChanges(change.type == ChildRemoved ? SiblingRemoved : Other, change.siblingBeforeChange, change.siblingAfterChange);
|
| + if (change.isChildElementChange())
|
| + checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAfterChange);
|
|
|
| if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) {
|
| if (ShadowRoot* root = point->containingShadowRoot())
|
|
|