Introduce DEFINE_RENDER_OBJECT_TYPE_CASTS to replace manual toRenderFoo, and use it

As a step to let toFoo use DEFINE_TYPE_CASTS, this cl introduce DEFINE_RENDER_OBJECT_TYPE_CASTS,
which can support more helper functions rather than manual toFoo(). This cl will help to detect
bad type casts further.

BUG=309516

Review URL: https://codereview.chromium.org/33983003

git-svn-id: svn://svn.chromium.org/blink/trunk@160170 bbb929c8-8fbe-4397-9dbb-9b2b20218538