void ShadowRoot::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) { ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); checkForSiblingStyleChanges(false, 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 (change.isChildElementChange()) checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAfterChange); if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) { if (ShadowRoot* root = point->containingShadowRoot()) root->owner()->setNeedsDistributionRecalc(); } }
void Element::finishParsingChildren() { ContainerNode::finishParsingChildren(); m_parsingChildrenFinished = true; checkForSiblingStyleChanges(this, renderStyle(), true, lastChild(), 0, 0); }
void Element::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) { ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); if (!changedByParser) checkForSiblingStyleChanges(this, renderStyle(), false, beforeChange, afterChange, childCountDelta); }