Index: Source/core/svg/SVGFitToViewBox.cpp |
diff --git a/Source/core/svg/SVGFitToViewBox.cpp b/Source/core/svg/SVGFitToViewBox.cpp |
index 7a3edef5632011c637a599bdb011499d330f8825..4bb1746d648a36625466cfd952dd6b4b7852f7b8 100644 |
--- a/Source/core/svg/SVGFitToViewBox.cpp |
+++ b/Source/core/svg/SVGFitToViewBox.cpp |
@@ -35,9 +35,9 @@ namespace blink { |
class SVGAnimatedViewBoxRect : public SVGAnimatedRect { |
public: |
- static PassRefPtr<SVGAnimatedRect> create(SVGElement* contextElement) |
+ static PassRefPtrWillBeRawPtr<SVGAnimatedRect> create(SVGElement* contextElement) |
{ |
- return adoptRef(new SVGAnimatedViewBoxRect(contextElement)); |
+ return adoptRefWillBeNoop(new SVGAnimatedViewBoxRect(contextElement)); |
} |
void setBaseValueAsString(const String&, SVGParsingError&) override; |
@@ -77,7 +77,13 @@ SVGFitToViewBox::SVGFitToViewBox(SVGElement* element, PropertyMapPolicy property |
} |
} |
-AffineTransform SVGFitToViewBox::viewBoxToViewTransform(const FloatRect& viewBoxRect, PassRefPtr<SVGPreserveAspectRatio> preserveAspectRatio, float viewWidth, float viewHeight) |
+void SVGFitToViewBox::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_viewBox); |
+ visitor->trace(m_preserveAspectRatio); |
+} |
+ |
+AffineTransform SVGFitToViewBox::viewBoxToViewTransform(const FloatRect& viewBoxRect, PassRefPtrWillBeRawPtr<SVGPreserveAspectRatio> preserveAspectRatio, float viewWidth, float viewHeight) |
{ |
if (!viewBoxRect.width() || !viewBoxRect.height() || !viewWidth || !viewHeight) |
return AffineTransform(); |