void ElementShadow::attach() { ContentDistributor::ensureDistribution(youngestShadowRoot()); for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) { if (!root->attached()) root->attach(); } }
void ElementShadow::attach(const Node::AttachContext& context) { Node::AttachContext childrenContext(context); childrenContext.resolvedStyle = 0; for (ShadowRoot* root = &youngestShadowRoot(); root; root = root->olderShadowRoot()) { if (root->needsAttach()) root->attach(childrenContext); } }
void ShadowTree::attach() { // Children of m_selector is populated lazily in // ensureSelector(), and here we just ensure that it is in clean state. ASSERT(!selector().hasPopulated()); selector().willSelect(); for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) { if (!root->attached()) root->attach(); } selector().didSelect(); }