void ShadowRoot::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) { ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) { if (ShadowRoot* root = point->containingShadowRoot()) root->owner()->setNeedsDistributionRecalc(); } }
void ShadowRoot::childrenChanged(const ChildrenChange& change) { ContainerNode::childrenChanged(change); if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) { if (ShadowRoot* root = point->containingShadowRoot()) root->owner()->setNeedsDistributionRecalc(); } }
void ShadowRoot::childrenChanged(const ChildrenChange& change) { ContainerNode::childrenChanged(change); if (change.isChildElementChange()) checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAfterChange); if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) { if (ShadowRoot* root = point->containingShadowRoot()) root->owner()->setNeedsDistributionRecalc(); } }