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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 if (value == "turbulence") | 91 if (value == "turbulence") |
92 return FETURBULENCE_TYPE_TURBULENCE; | 92 return FETURBULENCE_TYPE_TURBULENCE; |
93 return FETURBULENCE_TYPE_UNKNOWN; | 93 return FETURBULENCE_TYPE_UNKNOWN; |
94 } | 94 } |
95 }; | 95 }; |
96 | 96 |
97 class SVGFETurbulenceElement : public SVGFilterPrimitiveStandardAttributes { | 97 class SVGFETurbulenceElement : public SVGFilterPrimitiveStandardAttributes { |
98 public: | 98 public: |
99 static PassRefPtr<SVGFETurbulenceElement> create(const QualifiedName&, const
Handle<Document>&); | 99 static PassRefPtr<SVGFETurbulenceElement> create(const QualifiedName&, const
Handle<Document>&); |
100 | 100 |
| 101 virtual void accept(Visitor* visitor) const OVERRIDE { SVGFilterPrimitiveSta
ndardAttributes::accept(visitor); } |
| 102 |
101 private: | 103 private: |
102 SVGFETurbulenceElement(const QualifiedName&, const Handle<Document>&); | 104 SVGFETurbulenceElement(const QualifiedName&, const Handle<Document>&); |
103 | 105 |
104 bool isSupportedAttribute(const QualifiedName&); | 106 bool isSupportedAttribute(const QualifiedName&); |
105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 107 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
106 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); | 108 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); |
107 virtual void svgAttributeChanged(const QualifiedName&); | 109 virtual void svgAttributeChanged(const QualifiedName&); |
108 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 110 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
109 | 111 |
110 static const AtomicString& baseFrequencyXIdentifier(); | 112 static const AtomicString& baseFrequencyXIdentifier(); |
111 static const AtomicString& baseFrequencyYIdentifier(); | 113 static const AtomicString& baseFrequencyYIdentifier(); |
112 | 114 |
113 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFETurbulenceElement) | 115 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFETurbulenceElement) |
114 DECLARE_ANIMATED_NUMBER(BaseFrequencyX, baseFrequencyX) | 116 DECLARE_ANIMATED_NUMBER(BaseFrequencyX, baseFrequencyX) |
115 DECLARE_ANIMATED_NUMBER(BaseFrequencyY, baseFrequencyY) | 117 DECLARE_ANIMATED_NUMBER(BaseFrequencyY, baseFrequencyY) |
116 DECLARE_ANIMATED_INTEGER(NumOctaves, numOctaves) | 118 DECLARE_ANIMATED_INTEGER(NumOctaves, numOctaves) |
117 DECLARE_ANIMATED_NUMBER(Seed, seed) | 119 DECLARE_ANIMATED_NUMBER(Seed, seed) |
118 DECLARE_ANIMATED_ENUMERATION(StitchTiles, stitchTiles, SVGStitchOptions) | 120 DECLARE_ANIMATED_ENUMERATION(StitchTiles, stitchTiles, SVGStitchOptions) |
119 DECLARE_ANIMATED_ENUMERATION(Type, type, TurbulenceType) | 121 DECLARE_ANIMATED_ENUMERATION(Type, type, TurbulenceType) |
120 END_DECLARE_ANIMATED_PROPERTIES | 122 END_DECLARE_ANIMATED_PROPERTIES |
121 }; | 123 }; |
122 | 124 |
123 } // namespace WebCore | 125 } // namespace WebCore |
124 | 126 |
125 #endif // ENABLE(SVG) | 127 #endif // ENABLE(SVG) |
126 #endif | 128 #endif |
OLD | NEW |