Index: Source/core/rendering/RenderProgress.h |
diff --git a/Source/core/rendering/RenderProgress.h b/Source/core/rendering/RenderProgress.h |
index aa7a052fc09ccb43c8649fbf3f2f39cc69eb779e..c1bfed39af4746ddcc83ef8fcd1164d90b26ce2c 100644 |
--- a/Source/core/rendering/RenderProgress.h |
+++ b/Source/core/rendering/RenderProgress.h |
@@ -59,14 +59,7 @@ private: |
Timer<RenderProgress> m_animationTimer; |
}; |
-inline RenderProgress* toRenderProgress(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isProgress()); |
- return static_cast<RenderProgress*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderProgress(const RenderProgress*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderProgress, isProgress()); |
} // namespace WebCore |