void HTMLMeterElement::createShadowSubtree() { RefPtr<MeterBarElement> bar = MeterBarElement::create(document()); m_value = MeterValueElement::create(document()); ExceptionCode ec = 0; bar->appendChild(m_value, ec); ensureShadowRoot()->appendChild(bar, ec); }
void HTMLProgressElement::createShadowSubtree() { RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document()); m_value = ProgressValueElement::create(document()); ExceptionCode ec = 0; bar->appendChild(m_value, ec); ensureShadowRoot()->appendChild(bar, ec); }
void SVGTRefElement::updateReferencedText() { Element* target = SVGURIReference::targetElementFromIRIString(href(), document()); ASSERT(target); String textContent; if (target->parentNode()) textContent = target->textContent(); ExceptionCode ignore = 0; if (!ensureShadowRoot()->firstChild()) shadowRoot()->appendChild(SVGShadowText::create(document(), textContent), ignore); else shadowRoot()->firstChild()->setTextContent(textContent, ignore); }
void HTMLTextAreaElement::createShadowSubtree() { ExceptionCode ec = 0; ensureShadowRoot()->appendChild(TextControlInnerTextElement::create(document()), ec); }