diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-09 14:16:12 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-09 14:16:12 +0100 |
commit | 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (patch) | |
tree | 52599cd0ab782b1768e23ad176f7618f98333cb6 /Source/WebCore/html/HTMLProgressElement.cpp | |
parent | cd44dc59cdfc39534aef4d417e9f3c412e3be139 (diff) | |
download | qtwebkit-03e12282df9aa1e1fb05a8b90f1cfc2e08764cec.tar.gz |
Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223)
Diffstat (limited to 'Source/WebCore/html/HTMLProgressElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLProgressElement.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/WebCore/html/HTMLProgressElement.cpp b/Source/WebCore/html/HTMLProgressElement.cpp index 960f15782..0c2372581 100644 --- a/Source/WebCore/html/HTMLProgressElement.cpp +++ b/Source/WebCore/html/HTMLProgressElement.cpp @@ -75,14 +75,14 @@ const AtomicString& HTMLProgressElement::formControlType() const return progress; } -void HTMLProgressElement::parseMappedAttribute(Attribute* attribute) +void HTMLProgressElement::parseAttribute(Attribute* attribute) { if (attribute->name() == valueAttr) didElementStateChange(); else if (attribute->name() == maxAttr) didElementStateChange(); else - HTMLFormControlElement::parseMappedAttribute(attribute); + HTMLFormControlElement::parseAttribute(attribute); } void HTMLProgressElement::attach() @@ -153,11 +153,14 @@ void HTMLProgressElement::didElementStateChange() void HTMLProgressElement::createShadowSubtree() { + ASSERT(!shadowRoot()); + RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document()); m_value = ProgressValueElement::create(document()); - ExceptionCode ec = 0; - bar->appendChild(m_value, ec); - ensureShadowRoot()->appendChild(bar, ec); + bar->appendChild(m_value, ASSERT_NO_EXCEPTION); + + RefPtr<ShadowRoot> root = ShadowRoot::create(this, ShadowRoot::CreatingUserAgentShadowRoot, ASSERT_NO_EXCEPTION); + root->appendChild(bar, ASSERT_NO_EXCEPTION); } } // namespace |