| 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 24 matching lines...) Expand all Loading... |
| 35 enum SVGSpreadMethodType { | 35 enum SVGSpreadMethodType { |
| 36 SVGSpreadMethodUnknown = 0, | 36 SVGSpreadMethodUnknown = 0, |
| 37 SVGSpreadMethodPad, | 37 SVGSpreadMethodPad, |
| 38 SVGSpreadMethodReflect, | 38 SVGSpreadMethodReflect, |
| 39 SVGSpreadMethodRepeat | 39 SVGSpreadMethodRepeat |
| 40 }; | 40 }; |
| 41 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGSpreadMe
thodType>(); | 41 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGSpreadMe
thodType>(); |
| 42 | 42 |
| 43 class SVGGradientElement : public SVGElement, | 43 class SVGGradientElement : public SVGElement, |
| 44 public SVGURIReference { | 44 public SVGURIReference { |
| 45 DEFINE_WRAPPERTYPEINFO(); |
| 45 public: | 46 public: |
| 46 enum { | 47 enum { |
| 47 SVG_SPREADMETHOD_UNKNOWN = SVGSpreadMethodUnknown, | 48 SVG_SPREADMETHOD_UNKNOWN = SVGSpreadMethodUnknown, |
| 48 SVG_SPREADMETHOD_PAD = SVGSpreadMethodReflect, | 49 SVG_SPREADMETHOD_PAD = SVGSpreadMethodReflect, |
| 49 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat, | 50 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat, |
| 50 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown | 51 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 Vector<Gradient::ColorStop> buildStops(); | 54 Vector<Gradient::ColorStop> buildStops(); |
| 54 | 55 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 75 | 76 |
| 76 inline bool isSVGGradientElement(const SVGElement& element) | 77 inline bool isSVGGradientElement(const SVGElement& element) |
| 77 { | 78 { |
| 78 return element.hasTagName(SVGNames::radialGradientTag) || element.hasTagName
(SVGNames::linearGradientTag); | 79 return element.hasTagName(SVGNames::radialGradientTag) || element.hasTagName
(SVGNames::linearGradientTag); |
| 79 } | 80 } |
| 80 | 81 |
| 81 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); | 82 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); |
| 82 | 83 |
| 83 } // namespace blink | 84 } // namespace blink |
| 84 | 85 |
| 85 #endif | 86 #endif // SVGGradientElement_h |
| OLD | NEW |