Use lineageOfType to simplify two rendering helpers.
[WebKit-https.git] / Source / WebCore / rendering / RenderRubyRun.h
index 3e6456f12b10c1f605f7ace62e4cc170a324cd44..1c660acebc32e6f5a55bdf4952e1b8a1a7dba28e 100644 (file)
@@ -77,6 +77,8 @@ private:
     virtual void removeLeftoverAnonymousBlock(RenderBlock*) { }
 };
 
+template<> inline bool isRendererOfType<const RenderRubyRun>(const RenderObject& renderer) { return renderer.isRubyRun(); }
+
 RENDER_OBJECT_TYPE_CASTS(RenderRubyRun, isRubyRun())
 
 } // namespace WebCore