Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Side by Side Diff: Source/core/svg/SVGFETurbulenceElement.h

Issue 14022022: FINALizing of the Node hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Action review comments. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGFETileElement.h ('k') | Source/core/svg/SVGFilterElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 static TurbulenceType fromString(const String& value) 87 static TurbulenceType fromString(const String& value)
88 { 88 {
89 if (value == "fractalNoise") 89 if (value == "fractalNoise")
90 return FETURBULENCE_TYPE_FRACTALNOISE; 90 return FETURBULENCE_TYPE_FRACTALNOISE;
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 FINAL : public SVGFilterPrimitiveStandardAttributes {
98 public: 98 public:
99 static PassRefPtr<SVGFETurbulenceElement> create(const QualifiedName&, Docum ent*); 99 static PassRefPtr<SVGFETurbulenceElement> create(const QualifiedName&, Docum ent*);
100 100
101 private: 101 private:
102 SVGFETurbulenceElement(const QualifiedName&, Document*); 102 SVGFETurbulenceElement(const QualifiedName&, Document*);
103 103
104 bool isSupportedAttribute(const QualifiedName&); 104 bool isSupportedAttribute(const QualifiedName&);
105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
106 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName); 106 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName);
107 virtual void svgAttributeChanged(const QualifiedName&); 107 virtual void svgAttributeChanged(const QualifiedName&);
108 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 108 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
109 109
110 static const AtomicString& baseFrequencyXIdentifier(); 110 static const AtomicString& baseFrequencyXIdentifier();
111 static const AtomicString& baseFrequencyYIdentifier(); 111 static const AtomicString& baseFrequencyYIdentifier();
112 112
113 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFETurbulenceElement) 113 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFETurbulenceElement)
114 DECLARE_ANIMATED_NUMBER(BaseFrequencyX, baseFrequencyX) 114 DECLARE_ANIMATED_NUMBER(BaseFrequencyX, baseFrequencyX)
115 DECLARE_ANIMATED_NUMBER(BaseFrequencyY, baseFrequencyY) 115 DECLARE_ANIMATED_NUMBER(BaseFrequencyY, baseFrequencyY)
116 DECLARE_ANIMATED_INTEGER(NumOctaves, numOctaves) 116 DECLARE_ANIMATED_INTEGER(NumOctaves, numOctaves)
117 DECLARE_ANIMATED_NUMBER(Seed, seed) 117 DECLARE_ANIMATED_NUMBER(Seed, seed)
118 DECLARE_ANIMATED_ENUMERATION(StitchTiles, stitchTiles, SVGStitchOptions) 118 DECLARE_ANIMATED_ENUMERATION(StitchTiles, stitchTiles, SVGStitchOptions)
119 DECLARE_ANIMATED_ENUMERATION(Type, type, TurbulenceType) 119 DECLARE_ANIMATED_ENUMERATION(Type, type, TurbulenceType)
120 END_DECLARE_ANIMATED_PROPERTIES 120 END_DECLARE_ANIMATED_PROPERTIES
121 }; 121 };
122 122
123 } // namespace WebCore 123 } // namespace WebCore
124 124
125 #endif // ENABLE(SVG) 125 #endif // ENABLE(SVG)
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFETileElement.h ('k') | Source/core/svg/SVGFilterElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698