OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
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 29 matching lines...) Expand all Loading... |
40 }; | 40 }; |
41 template <> | 41 template <> |
42 const SVGEnumerationStringEntries& | 42 const SVGEnumerationStringEntries& |
43 getStaticStringEntries<SVGSpreadMethodType>(); | 43 getStaticStringEntries<SVGSpreadMethodType>(); |
44 | 44 |
45 class SVGGradientElement : public SVGElement, public SVGURIReference { | 45 class SVGGradientElement : public SVGElement, public SVGURIReference { |
46 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
47 USING_GARBAGE_COLLECTED_MIXIN(SVGGradientElement); | 47 USING_GARBAGE_COLLECTED_MIXIN(SVGGradientElement); |
48 | 48 |
49 public: | 49 public: |
| 50 enum { |
| 51 kSvgUnitTypeUnknown = SVGUnitTypes::kSvgUnitTypeUnknown, |
| 52 kSvgUnitTypeUserspaceonuse = SVGUnitTypes::kSvgUnitTypeUserspaceonuse, |
| 53 kSvgUnitTypeObjectboundingbox = SVGUnitTypes::kSvgUnitTypeObjectboundingbox |
| 54 }; |
| 55 |
50 Vector<Gradient::ColorStop> buildStops(); | 56 Vector<Gradient::ColorStop> buildStops(); |
51 | 57 |
52 SVGAnimatedTransformList* gradientTransform() { | 58 SVGAnimatedTransformList* gradientTransform() { |
53 return m_gradientTransform.get(); | 59 return m_gradientTransform.get(); |
54 } | 60 } |
55 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { | 61 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { |
56 return m_spreadMethod.get(); | 62 return m_spreadMethod.get(); |
57 } | 63 } |
58 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { | 64 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { |
59 return m_gradientUnits.get(); | 65 return m_gradientUnits.get(); |
(...skipping 19 matching lines...) Expand all Loading... |
79 inline bool isSVGGradientElement(const SVGElement& element) { | 85 inline bool isSVGGradientElement(const SVGElement& element) { |
80 return element.hasTagName(SVGNames::radialGradientTag) || | 86 return element.hasTagName(SVGNames::radialGradientTag) || |
81 element.hasTagName(SVGNames::linearGradientTag); | 87 element.hasTagName(SVGNames::linearGradientTag); |
82 } | 88 } |
83 | 89 |
84 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); | 90 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); |
85 | 91 |
86 } // namespace blink | 92 } // namespace blink |
87 | 93 |
88 #endif // SVGGradientElement_h | 94 #endif // SVGGradientElement_h |
OLD | NEW |