static inline RenderBlock* rubyBeforeBlock(const RenderObject* ruby) { RenderObject* child = ruby->firstChild(); return isRubyBeforeBlock(child) ? toRenderBlock(child) : 0; }
static inline RenderBlock* rubyBeforeBlock(const RenderElement* ruby) { RenderObject* child = ruby->firstChild(); return isRubyBeforeBlock(child) ? downcast<RenderBlock>(child) : nullptr; }