diff options
Diffstat (limited to 'Source/WebCore/html/HTMLMeterElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLMeterElement.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/WebCore/html/HTMLMeterElement.cpp b/Source/WebCore/html/HTMLMeterElement.cpp index 011a669e0..a1fdaf6c7 100644 --- a/Source/WebCore/html/HTMLMeterElement.cpp +++ b/Source/WebCore/html/HTMLMeterElement.cpp @@ -71,12 +71,12 @@ bool HTMLMeterElement::supportsFocus() const return Node::supportsFocus() && !disabled(); } -void HTMLMeterElement::parseMappedAttribute(Attribute* attribute) +void HTMLMeterElement::parseAttribute(Attribute* attribute) { if (attribute->name() == valueAttr || attribute->name() == minAttr || attribute->name() == maxAttr || attribute->name() == lowAttr || attribute->name() == highAttr || attribute->name() == optimumAttr) didElementStateChange(); else - HTMLFormControlElement::parseMappedAttribute(attribute); + HTMLFormControlElement::parseAttribute(attribute); } void HTMLMeterElement::attach() @@ -234,11 +234,15 @@ void HTMLMeterElement::didElementStateChange() void HTMLMeterElement::createShadowSubtree() { + ASSERT(!shadowRoot()); + RefPtr<MeterBarElement> bar = MeterBarElement::create(document()); m_value = MeterValueElement::create(document()); ExceptionCode ec = 0; bar->appendChild(m_value, ec); - ensureShadowRoot()->appendChild(bar, ec); + + RefPtr<ShadowRoot> root = ShadowRoot::create(this, ShadowRoot::CreatingUserAgentShadowRoot); + root->appendChild(bar, ec); } } // namespace |