// The SVG addOutlineRects() method adds rects in local coordinates so the // default absoluteElementBoundingBoxRect() returns incorrect values for SVG // objects. Overriding this method provides access to the absolute bounds. IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { return localToAbsoluteQuad( FloatQuad(paintInvalidationRectInLocalSVGCoordinates())) .enclosingBoundingBox(); }
void LayoutSVGImage::addOutlineRects(Vector<LayoutRect>& rects, const LayoutPoint&, IncludeBlockVisualOverflowOrNot) const { // this is called from paint() after the localTransform has already been applied rects.append(LayoutRect(paintInvalidationRectInLocalSVGCoordinates())); }