Index: Source/core/rendering/RenderFullScreen.h |
diff --git a/Source/core/rendering/RenderFullScreen.h b/Source/core/rendering/RenderFullScreen.h |
index 65665d36d40e9bda2ef02ed99e2a1be01a68e456..48c40f4f7fe5db58a4aa74189145c2dcf08486a6 100644 |
--- a/Source/core/rendering/RenderFullScreen.h |
+++ b/Source/core/rendering/RenderFullScreen.h |
@@ -54,14 +54,8 @@ protected: |
RenderBlock* m_placeholder; |
}; |
-inline RenderFullScreen* toRenderFullScreen(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(object->isRenderFullScreen()); |
- return static_cast<RenderFullScreen*>(object); |
-} |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFullScreen, isRenderFullScreen()); |
-// This will catch anyone doing an unnecessary cast: |
-void toRenderFullScreen(RenderFullScreen*); |
} |
#endif |