bool HTMLSummaryElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const { if (childContext.node()->isPseudoElement()) return HTMLElement::childShouldCreateRenderer(childContext); return childContext.isOnEncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext); }
bool HTMLDetailsElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const { if (!childContext.isOnEncapsulationBoundary()) return false; if (m_isOpen) return HTMLElement::childShouldCreateRenderer(childContext); if (!childContext.node()->hasTagName(summaryTag)) return false; return childContext.node() == findMainSummary() && HTMLElement::childShouldCreateRenderer(childContext); }
bool HTMLSummaryElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const { return childContext.isOnEncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext); }