| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 Vector<Gradient::ColorStop> buildStops(); | 54 Vector<Gradient::ColorStop> buildStops(); |
| 55 | 55 |
| 56 SVGAnimatedTransformList* gradientTransform() { return m_gradientTransform.g
et(); } | 56 SVGAnimatedTransformList* gradientTransform() { return m_gradientTransform.g
et(); } |
| 57 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { return m_sprea
dMethod.get(); } | 57 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { return m_sprea
dMethod.get(); } |
| 58 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { return
m_gradientUnits.get(); } | 58 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { return
m_gradientUnits.get(); } |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 SVGGradientElement(const QualifiedName&, Document&); | 61 SVGGradientElement(const QualifiedName&, Document&); |
| 62 | 62 |
| 63 bool isSupportedAttribute(const QualifiedName&); | 63 bool isSupportedAttribute(const QualifiedName&); |
| 64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 65 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 65 virtual void svgAttributeChanged(const QualifiedName&) override; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 virtual bool needsPendingResourceHandling() const OVERRIDE FINAL { return fa
lse; } | 68 virtual bool needsPendingResourceHandling() const override final { return fa
lse; } |
| 69 | 69 |
| 70 virtual void childrenChanged(const ChildrenChange&) OVERRIDE FINAL; | 70 virtual void childrenChanged(const ChildrenChange&) override final; |
| 71 | 71 |
| 72 RefPtr<SVGAnimatedTransformList> m_gradientTransform; | 72 RefPtr<SVGAnimatedTransformList> m_gradientTransform; |
| 73 RefPtr<SVGAnimatedEnumeration<SVGSpreadMethodType> > m_spreadMethod; | 73 RefPtr<SVGAnimatedEnumeration<SVGSpreadMethodType> > m_spreadMethod; |
| 74 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_gradientUnits; | 74 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_gradientUnits; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 inline bool isSVGGradientElement(const SVGElement& element) | 77 inline bool isSVGGradientElement(const SVGElement& element) |
| 78 { | 78 { |
| 79 return element.hasTagName(SVGNames::radialGradientTag) || element.hasTagName
(SVGNames::linearGradientTag); | 79 return element.hasTagName(SVGNames::radialGradientTag) || element.hasTagName
(SVGNames::linearGradientTag); |
| 80 } | 80 } |
| 81 | 81 |
| 82 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); | 82 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif // SVGGradientElement_h | 86 #endif // SVGGradientElement_h |
| OLD | NEW |