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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 }; | 57 }; |
58 | 58 |
59 class SVGFEMorphologyElement FINAL : public SVGFilterPrimitiveStandardAttributes
{ | 59 class SVGFEMorphologyElement FINAL : public SVGFilterPrimitiveStandardAttributes
{ |
60 public: | 60 public: |
61 static PassRefPtr<SVGFEMorphologyElement> create(Document&); | 61 static PassRefPtr<SVGFEMorphologyElement> create(Document&); |
62 | 62 |
63 void setRadius(float radiusX, float radiusY); | 63 void setRadius(float radiusX, float radiusY); |
64 | 64 |
65 SVGAnimatedNumber* radiusX() { return m_radius->firstNumber(); } | 65 SVGAnimatedNumber* radiusX() { return m_radius->firstNumber(); } |
66 SVGAnimatedNumber* radiusY() { return m_radius->secondNumber(); } | 66 SVGAnimatedNumber* radiusY() { return m_radius->secondNumber(); } |
| 67 SVGAnimatedString* in1() { return m_in1.get(); } |
67 | 68 |
68 private: | 69 private: |
69 explicit SVGFEMorphologyElement(Document&); | 70 explicit SVGFEMorphologyElement(Document&); |
70 | 71 |
71 bool isSupportedAttribute(const QualifiedName&); | 72 bool isSupportedAttribute(const QualifiedName&); |
72 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 73 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
73 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; | 74 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; |
74 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 75 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
75 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 76 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
76 | 77 |
77 RefPtr<SVGAnimatedNumberOptionalNumber> m_radius; | 78 RefPtr<SVGAnimatedNumberOptionalNumber> m_radius; |
| 79 RefPtr<SVGAnimatedString> m_in1; |
78 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEMorphologyElement) | 80 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEMorphologyElement) |
79 DECLARE_ANIMATED_STRING(In1, in1) | |
80 DECLARE_ANIMATED_ENUMERATION(SVGOperator, svgOperator, MorphologyOperato
rType) | 81 DECLARE_ANIMATED_ENUMERATION(SVGOperator, svgOperator, MorphologyOperato
rType) |
81 END_DECLARE_ANIMATED_PROPERTIES | 82 END_DECLARE_ANIMATED_PROPERTIES |
82 }; | 83 }; |
83 | 84 |
84 } // namespace WebCore | 85 } // namespace WebCore |
85 | 86 |
86 #endif | 87 #endif |
OLD | NEW |