Index: Source/WebCore/html/HTMLProgressElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLProgressElement.cpp (revision 118865) |
+++ Source/WebCore/html/HTMLProgressElement.cpp (working copy) |
@@ -140,7 +140,7 @@ |
void HTMLProgressElement::didElementStateChange() |
{ |
m_value->setWidthPercentage(position() * 100); |
- if (renderer()) { |
+ if (renderer() && renderer()->isProgress()) { |
RenderProgress* render = toRenderProgress(renderer()); |
bool wasDeterminate = render->isDeterminate(); |
renderer()->updateFromElement(); |