Add lineageOfType renderer iterator and start using it.
[WebKit-https.git] / Source / WebCore / rendering / RenderLayerModelObject.h
index 3b03d69e352f2b472b76d34db031cbf4dc85ef7d..6c75b37f4162274aa2ef9fdabfa9d6f981d819ca 100644 (file)
@@ -67,6 +67,8 @@ private:
     static bool s_layerWasSelfPainting;
 };
 
+template <> inline bool isRendererOfType<const RenderLayerModelObject>(const RenderObject& renderer) { return renderer.isRenderLayerModelObject(); }
+
 RENDER_OBJECT_TYPE_CASTS(RenderLayerModelObject, isRenderLayerModelObject())
 
 } // namespace WebCore