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

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 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 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 18 matching lines...) Expand all
29 29
30 RenderSVGResourceRadialGradient::RenderSVGResourceRadialGradient(SVGRadialGradie ntElement* node) 30 RenderSVGResourceRadialGradient::RenderSVGResourceRadialGradient(SVGRadialGradie ntElement* node)
31 : RenderSVGResourceGradient(node) 31 : RenderSVGResourceGradient(node)
32 { 32 {
33 } 33 }
34 34
35 RenderSVGResourceRadialGradient::~RenderSVGResourceRadialGradient() 35 RenderSVGResourceRadialGradient::~RenderSVGResourceRadialGradient()
36 { 36 {
37 } 37 }
38 38
39 void RenderSVGResourceRadialGradient::trace(Visitor* visitor)
40 {
41 visitor->trace(m_attributes);
42 RenderSVGResourceGradient::trace(visitor);
43 }
44
39 bool RenderSVGResourceRadialGradient::collectGradientAttributes(SVGGradientEleme nt* gradientElement) 45 bool RenderSVGResourceRadialGradient::collectGradientAttributes(SVGGradientEleme nt* gradientElement)
40 { 46 {
41 m_attributes = RadialGradientAttributes(); 47 m_attributes = RadialGradientAttributes();
42 return toSVGRadialGradientElement(gradientElement)->collectGradientAttribute s(m_attributes); 48 return toSVGRadialGradientElement(gradientElement)->collectGradientAttribute s(m_attributes);
43 } 49 }
44 50
45 FloatPoint RenderSVGResourceRadialGradient::centerPoint(const RadialGradientAttr ibutes& attributes) const 51 FloatPoint RenderSVGResourceRadialGradient::centerPoint(const RadialGradientAttr ibutes& attributes) const
46 { 52 {
47 return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.cx(), attributes.cy()); 53 return SVGLengthContext::resolvePoint(element(), attributes.gradientUnits(), attributes.cx(), attributes.cy());
48 } 54 }
(...skipping 19 matching lines...) Expand all
68 this->focalRadius(m_attributes), 74 this->focalRadius(m_attributes),
69 this->centerPoint(m_attributes), 75 this->centerPoint(m_attributes),
70 this->radius(m_attributes)); 76 this->radius(m_attributes));
71 77
72 gradientData->gradient->setSpreadMethod(platformSpreadMethodFromSVGType(m_at tributes.spreadMethod())); 78 gradientData->gradient->setSpreadMethod(platformSpreadMethodFromSVGType(m_at tributes.spreadMethod()));
73 79
74 addStops(gradientData, m_attributes.stops()); 80 addStops(gradientData, m_attributes.stops());
75 } 81 }
76 82
77 } 83 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceRadialGradient.h ('k') | Source/core/rendering/svg/SVGPathData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698