| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 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 23 matching lines...) Expand all Loading... |
| 34 SVG_STITCHTYPE_UNKNOWN = 0, | 34 SVG_STITCHTYPE_UNKNOWN = 0, |
| 35 SVG_STITCHTYPE_STITCH = 1, | 35 SVG_STITCHTYPE_STITCH = 1, |
| 36 SVG_STITCHTYPE_NOSTITCH = 2 | 36 SVG_STITCHTYPE_NOSTITCH = 2 |
| 37 }; | 37 }; |
| 38 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGStitchOp
tions>(); | 38 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGStitchOp
tions>(); |
| 39 | 39 |
| 40 template<> const SVGEnumerationStringEntries& getStaticStringEntries<TurbulenceT
ype>(); | 40 template<> const SVGEnumerationStringEntries& getStaticStringEntries<TurbulenceT
ype>(); |
| 41 | 41 |
| 42 class SVGFETurbulenceElement FINAL : public SVGFilterPrimitiveStandardAttributes
{ | 42 class SVGFETurbulenceElement FINAL : public SVGFilterPrimitiveStandardAttributes
{ |
| 43 public: | 43 public: |
| 44 DEFINE_NODE_FACTORY(SVGFETurbulenceElement); | 44 DECLARE_NODE_FACTORY(SVGFETurbulenceElement); |
| 45 | 45 |
| 46 SVGAnimatedNumber* baseFrequencyX() { return m_baseFrequency->firstNumber();
} | 46 SVGAnimatedNumber* baseFrequencyX() { return m_baseFrequency->firstNumber();
} |
| 47 SVGAnimatedNumber* baseFrequencyY() { return m_baseFrequency->secondNumber()
; } | 47 SVGAnimatedNumber* baseFrequencyY() { return m_baseFrequency->secondNumber()
; } |
| 48 SVGAnimatedNumber* seed() { return m_seed.get(); } | 48 SVGAnimatedNumber* seed() { return m_seed.get(); } |
| 49 SVGAnimatedEnumeration<SVGStitchOptions>* stitchTiles() { return m_stitchTil
es.get(); } | 49 SVGAnimatedEnumeration<SVGStitchOptions>* stitchTiles() { return m_stitchTil
es.get(); } |
| 50 SVGAnimatedEnumeration<TurbulenceType>* type() { return m_type.get(); } | 50 SVGAnimatedEnumeration<TurbulenceType>* type() { return m_type.get(); } |
| 51 SVGAnimatedInteger* numOctaves() { return m_numOctaves.get(); } | 51 SVGAnimatedInteger* numOctaves() { return m_numOctaves.get(); } |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 explicit SVGFETurbulenceElement(Document&); | 54 explicit SVGFETurbulenceElement(Document&); |
| 55 | 55 |
| 56 bool isSupportedAttribute(const QualifiedName&); | 56 bool isSupportedAttribute(const QualifiedName&); |
| 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 58 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; | 58 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; |
| 59 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 59 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 60 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 60 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
| 61 | 61 |
| 62 RefPtr<SVGAnimatedNumberOptionalNumber> m_baseFrequency; | 62 RefPtr<SVGAnimatedNumberOptionalNumber> m_baseFrequency; |
| 63 RefPtr<SVGAnimatedNumber> m_seed; | 63 RefPtr<SVGAnimatedNumber> m_seed; |
| 64 RefPtr<SVGAnimatedEnumeration<SVGStitchOptions> > m_stitchTiles; | 64 RefPtr<SVGAnimatedEnumeration<SVGStitchOptions> > m_stitchTiles; |
| 65 RefPtr<SVGAnimatedEnumeration<TurbulenceType> > m_type; | 65 RefPtr<SVGAnimatedEnumeration<TurbulenceType> > m_type; |
| 66 RefPtr<SVGAnimatedInteger> m_numOctaves; | 66 RefPtr<SVGAnimatedInteger> m_numOctaves; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace WebCore | 69 } // namespace WebCore |
| 70 | 70 |
| 71 #endif | 71 #endif |
| OLD | NEW |