| Index: Source/core/rendering/RenderFileUploadControl.h
|
| diff --git a/Source/core/rendering/RenderFileUploadControl.h b/Source/core/rendering/RenderFileUploadControl.h
|
| index acc97136ed219b3cdde1259f57fbfaa3cf42f3c0..f3dfcf34b8ee029a6ff3b6d7b4d003e2c4abc3a0 100644
|
| --- a/Source/core/rendering/RenderFileUploadControl.h
|
| +++ b/Source/core/rendering/RenderFileUploadControl.h
|
| @@ -63,20 +63,7 @@ private:
|
| bool m_canReceiveDroppedFiles;
|
| };
|
|
|
| -inline RenderFileUploadControl* toRenderFileUploadControl(RenderObject* object)
|
| -{
|
| - ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFileUploadControl());
|
| - return static_cast<RenderFileUploadControl*>(object);
|
| -}
|
| -
|
| -inline const RenderFileUploadControl* toRenderFileUploadControl(const RenderObject* object)
|
| -{
|
| - ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFileUploadControl());
|
| - return static_cast<const RenderFileUploadControl*>(object);
|
| -}
|
| -
|
| -// This will catch anyone doing an unnecessary cast.
|
| -void toRenderFileUploadControl(const RenderFileUploadControl*);
|
| +DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFileUploadControl, isFileUploadControl());
|
|
|
| } // namespace WebCore
|
|
|
|
|