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