Index: Source/core/html/HTMLProgressElement.cpp |
diff --git a/Source/core/html/HTMLProgressElement.cpp b/Source/core/html/HTMLProgressElement.cpp |
index ded3d078f030b9c81353da2f78b7d43bc2539511..34ecdb63819e36402547aafa0f74acacfb865c3f 100644 |
--- a/Source/core/html/HTMLProgressElement.cpp |
+++ b/Source/core/html/HTMLProgressElement.cpp |
@@ -68,11 +68,11 @@ RenderObject* HTMLProgressElement::createRenderer(RenderStyle* style) |
RenderProgress* HTMLProgressElement::renderProgress() const |
{ |
if (renderer() && renderer()->isProgress()) |
- return static_cast<RenderProgress*>(renderer()); |
+ return toRenderProgress(renderer()); |
RenderObject* renderObject = userAgentShadowRoot()->firstChild()->renderer(); |
ASSERT_WITH_SECURITY_IMPLICATION(!renderObject || renderObject->isProgress()); |
- return static_cast<RenderProgress*>(renderObject); |
+ return toRenderProgress(renderObject); |
} |
void HTMLProgressElement::parseAttribute(const QualifiedName& name, const AtomicString& value) |