Move some RenderObject member functions to RenderElement.