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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual RenderSVGResourceType resourceType() const override { return s_resou
rceType; } | 39 virtual RenderSVGResourceType resourceType() const override { return s_resou
rceType; } |
40 | 40 |
41 virtual SVGUnitTypes::SVGUnitType gradientUnits() const override { return m_
attributes.gradientUnits(); } | 41 virtual SVGUnitTypes::SVGUnitType gradientUnits() const override { return m_
attributes.gradientUnits(); } |
42 virtual void calculateGradientTransform(AffineTransform& transform) override
{ transform = m_attributes.gradientTransform(); } | 42 virtual void calculateGradientTransform(AffineTransform& transform) override
{ transform = m_attributes.gradientTransform(); } |
43 virtual bool collectGradientAttributes(SVGGradientElement*) override; | 43 virtual bool collectGradientAttributes(SVGGradientElement*) override; |
44 virtual void buildGradient(GradientData*) const override; | 44 virtual void buildGradient(GradientData*) const override; |
45 | 45 |
46 FloatPoint startPoint(const LinearGradientAttributes&) const; | 46 FloatPoint startPoint(const LinearGradientAttributes&) const; |
47 FloatPoint endPoint(const LinearGradientAttributes&) const; | 47 FloatPoint endPoint(const LinearGradientAttributes&) const; |
48 | 48 |
| 49 virtual void trace(Visitor*) override; |
| 50 |
49 private: | 51 private: |
50 LinearGradientAttributes m_attributes; | 52 LinearGradientAttributes m_attributes; |
51 }; | 53 }; |
52 | 54 |
53 } | 55 } // namespace blink |
54 | 56 |
55 #endif | 57 #endif // RenderSVGResourceLinearGradient_h |
OLD | NEW |