FloatRect SVGRenderSupport::repaintRectForRendererInLocalCoordinatesExcludingSVGShadow(const RenderElement& renderer) { // FIXME: Add support for RenderSVGBlock. if (renderer.isSVGShape() || renderer.isSVGImage() || renderer.isSVGContainer()) return toRenderSVGModelObject(renderer).repaintRectInLocalCoordinatesExcludingSVGShadow(); return renderer.repaintRectInLocalCoordinates(); }
// One of the element types that can cause graphics to be drawn onto the target canvas. Specifically: circle, ellipse, // image, line, path, polygon, polyline, rect, text and use. static bool isGraphicsElement(const RenderElement& renderer) { return renderer.isSVGShape() || renderer.isSVGText() || renderer.isSVGImage() || renderer.element()->hasTagName(SVGNames::useTag); }