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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceRadialGradient.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 20 matching lines...) Expand all
31 31
32 RenderSVGResourceRadialGradient::RenderSVGResourceRadialGradient(SVGRadialGradie ntElement* node) 32 RenderSVGResourceRadialGradient::RenderSVGResourceRadialGradient(SVGRadialGradie ntElement* node)
33 : RenderSVGResourceGradient(node) 33 : RenderSVGResourceGradient(node)
34 { 34 {
35 } 35 }
36 36
37 RenderSVGResourceRadialGradient::~RenderSVGResourceRadialGradient() 37 RenderSVGResourceRadialGradient::~RenderSVGResourceRadialGradient()
38 { 38 {
39 } 39 }
40 40
41 void RenderSVGResourceRadialGradient::trace(Visitor* visitor)
42 {
43 visitor->trace(m_attributes);
44 RenderSVGResourceGradient::trace(visitor);
45 }
46
41 bool RenderSVGResourceRadialGradient::collectGradientAttributes(SVGGradientEleme nt* gradientElement) 47 bool RenderSVGResourceRadialGradient::collectGradientAttributes(SVGGradientEleme nt* gradientElement)
42 { 48 {
43 m_attributes = RadialGradientAttributes(); 49 m_attributes = RadialGradientAttributes();
44 return toSVGRadialGradientElement(gradientElement)->collectGradientAttribute s(m_attributes); 50 return toSVGRadialGradientElement(gradientElement)->collectGradientAttribute s(m_attributes);
45 } 51 }
46 52
47 FloatPoint RenderSVGResourceRadialGradient::centerPoint(const RadialGradientAttr ibutes& attributes) const 53 FloatPoint RenderSVGResourceRadialGradient::centerPoint(const RadialGradientAttr ibutes& attributes) const
48 { 54 {
49 return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.cx(), attributes.cy()); 55 return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.cx(), attributes.cy());
50 } 56 }
(...skipping 19 matching lines...) Expand all
70 this->focalRadius(m_attributes), 76 this->focalRadius(m_attributes),
71 this->centerPoint(m_attributes), 77 this->centerPoint(m_attributes),
72 this->radius(m_attributes)); 78 this->radius(m_attributes));
73 79
74 gradientData->gradient->setSpreadMethod(platformSpreadMethodFromSVGType(m_at tributes.spreadMethod())); 80 gradientData->gradient->setSpreadMethod(platformSpreadMethodFromSVGType(m_at tributes.spreadMethod()));
75 81
76 addStops(gradientData, m_attributes.stops()); 82 addStops(gradientData, m_attributes.stops());
77 } 83 }
78 84
79 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698