OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return FEMORPHOLOGY_OPERATOR_UNKNOWN; | 56 return FEMORPHOLOGY_OPERATOR_UNKNOWN; |
57 } | 57 } |
58 }; | 58 }; |
59 | 59 |
60 class SVGFEMorphologyElement : public SVGFilterPrimitiveStandardAttributes { | 60 class SVGFEMorphologyElement : public SVGFilterPrimitiveStandardAttributes { |
61 public: | 61 public: |
62 static PassRefPtr<SVGFEMorphologyElement> create(const QualifiedName&, const
Handle<Document>&); | 62 static PassRefPtr<SVGFEMorphologyElement> create(const QualifiedName&, const
Handle<Document>&); |
63 | 63 |
64 void setRadius(float radiusX, float radiusY); | 64 void setRadius(float radiusX, float radiusY); |
65 | 65 |
| 66 virtual void accept(Visitor* visitor) const OVERRIDE { SVGFilterPrimitiveSta
ndardAttributes::accept(visitor); } |
| 67 |
66 private: | 68 private: |
67 SVGFEMorphologyElement(const QualifiedName&, const Handle<Document>&); | 69 SVGFEMorphologyElement(const QualifiedName&, const Handle<Document>&); |
68 | 70 |
69 bool isSupportedAttribute(const QualifiedName&); | 71 bool isSupportedAttribute(const QualifiedName&); |
70 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 72 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
71 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); | 73 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); |
72 virtual void svgAttributeChanged(const QualifiedName&); | 74 virtual void svgAttributeChanged(const QualifiedName&); |
73 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 75 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
74 | 76 |
75 static const AtomicString& radiusXIdentifier(); | 77 static const AtomicString& radiusXIdentifier(); |
76 static const AtomicString& radiusYIdentifier(); | 78 static const AtomicString& radiusYIdentifier(); |
77 | 79 |
78 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEMorphologyElement) | 80 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEMorphologyElement) |
79 DECLARE_ANIMATED_STRING(In1, in1) | 81 DECLARE_ANIMATED_STRING(In1, in1) |
80 DECLARE_ANIMATED_ENUMERATION(_operator, _operator, MorphologyOperatorTyp
e) | 82 DECLARE_ANIMATED_ENUMERATION(_operator, _operator, MorphologyOperatorTyp
e) |
81 DECLARE_ANIMATED_NUMBER(RadiusX, radiusX) | 83 DECLARE_ANIMATED_NUMBER(RadiusX, radiusX) |
82 DECLARE_ANIMATED_NUMBER(RadiusY, radiusY) | 84 DECLARE_ANIMATED_NUMBER(RadiusY, radiusY) |
83 END_DECLARE_ANIMATED_PROPERTIES | 85 END_DECLARE_ANIMATED_PROPERTIES |
84 }; | 86 }; |
85 | 87 |
86 } // namespace WebCore | 88 } // namespace WebCore |
87 | 89 |
88 #endif // ENABLE(SVG) | 90 #endif // ENABLE(SVG) |
89 #endif | 91 #endif |
OLD | NEW |