Index: Source/core/rendering/RenderDetailsMarker.h |
diff --git a/Source/core/rendering/RenderDetailsMarker.h b/Source/core/rendering/RenderDetailsMarker.h |
index 8fa0f7e27cc435d2979909b2a5025a8f5f6e66b2..aa996c818a2a45e72344c7f5a214393af5147c2e 100644 |
--- a/Source/core/rendering/RenderDetailsMarker.h |
+++ b/Source/core/rendering/RenderDetailsMarker.h |
@@ -44,20 +44,7 @@ private: |
Path getPath(const LayoutPoint& origin) const; |
}; |
-inline RenderDetailsMarker* toRenderDetailsMarker(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isDetailsMarker()); |
- return static_cast<RenderDetailsMarker*>(object); |
-} |
- |
-inline const RenderDetailsMarker* toRenderDetailsMarker(const RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isDetailsMarker()); |
- return static_cast<const RenderDetailsMarker*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderDetailsMarker(const RenderDetailsMarker*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderDetailsMarker, isDetailsMarker()); |
} |