Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Unified Diff: Source/core/svg/SVGFitToViewBox.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.h ('k') | Source/core/svg/SVGForeignObjectElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.h ('k') | Source/core/svg/SVGForeignObjectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698