Index: Source/core/rendering/RenderMeter.h |
diff --git a/Source/core/rendering/RenderMeter.h b/Source/core/rendering/RenderMeter.h |
index 4dfcacadd867c39af4b327eaa5b9ad8f0c3ba07a..853679f19d98ef4ec9dfdf3901d330581e511122 100644 |
--- a/Source/core/rendering/RenderMeter.h |
+++ b/Source/core/rendering/RenderMeter.h |
@@ -49,14 +49,7 @@ private: |
double valueRatio() const; |
}; |
-inline RenderMeter* toRenderMeter(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMeter()); |
- return static_cast<RenderMeter*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderMeter(const RenderMeter*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMeter, isMeter()); |
} // namespace WebCore |