Index: Source/WebCore/html/HTMLProgressElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLProgressElement.cpp (revision 133837) |
+++ Source/WebCore/html/HTMLProgressElement.cpp (working copy) |
@@ -106,7 +106,8 @@ |
void HTMLProgressElement::attach() |
{ |
LabelableElement::attach(); |
- didElementStateChange(); |
+ if (RenderProgress* render = renderProgress()) |
+ render->updateFromElement(); |
} |
double HTMLProgressElement::value() const |
@@ -175,6 +176,7 @@ |
RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document()); |
RefPtr<ProgressValueElement> value = ProgressValueElement::create(document()); |
m_value = value.get(); |
+ m_value->setWidthPercentage(HTMLProgressElement::IndeterminatePosition * 100); |
bar->appendChild(m_value, ASSERT_NO_EXCEPTION); |
inner->appendChild(bar, ASSERT_NO_EXCEPTION); |