Index: Source/core/rendering/RenderSearchField.h |
diff --git a/Source/core/rendering/RenderSearchField.h b/Source/core/rendering/RenderSearchField.h |
index 006169bf67f150f87d85bc5ca430a679e6415246..87d889feaf655a9b71f26cf4819cce94d8cbc6db 100644 |
--- a/Source/core/rendering/RenderSearchField.h |
+++ b/Source/core/rendering/RenderSearchField.h |
@@ -44,14 +44,7 @@ private: |
Element* cancelButtonElement() const; |
}; |
-inline RenderSearchField* toRenderSearchField(RenderObject* object) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextField()); |
- return static_cast<RenderSearchField*>(object); |
-} |
- |
-// This will catch anyone doing an unnecessary cast. |
-void toRenderSearchField(const RenderSearchField*); |
+DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSearchField, isTextField()); |
} |