OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |