void ElementShadow::detach() { for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) { if (root->attached()) root->detach(); } }
void ElementShadow::detach(const Node::AttachContext& context) { Node::AttachContext childrenContext(context); childrenContext.resolvedStyle = 0; for (ShadowRoot* root = &youngestShadowRoot(); root; root = root->olderShadowRoot()) root->detach(childrenContext); }