Introduce DEFINE_INLINE_BOX_TYPE_CASTS, and use it

As a step to use DEFINE_TYPE_CASTS, this cl introduce DEFINE_INLINE_BOX_TYPE_CASTS.
InlineFlowBox, InlineTextBox, SVGInlineTextBox, SVGInlineFlowBox, and
SVGRootInlineBox can use it to generate toFoo() type case helper functions.

BUG=309516

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

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