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 12 matching lines...) Expand all Loading... |
23 #include "core/svg/SVGAnimatedEnumeration.h" | 23 #include "core/svg/SVGAnimatedEnumeration.h" |
24 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" | 24 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" |
25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
26 #include "platform/graphics/filters/FEMorphology.h" | 26 #include "platform/graphics/filters/FEMorphology.h" |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 template<> const SVGEnumerationStringEntries& getStaticStringEntries<MorphologyO
peratorType>(); | 30 template<> const SVGEnumerationStringEntries& getStaticStringEntries<MorphologyO
peratorType>(); |
31 | 31 |
32 class SVGFEMorphologyElement FINAL : public SVGFilterPrimitiveStandardAttributes
{ | 32 class SVGFEMorphologyElement FINAL : public SVGFilterPrimitiveStandardAttributes
{ |
| 33 DEFINE_WRAPPERTYPEINFO(); |
33 public: | 34 public: |
34 DECLARE_NODE_FACTORY(SVGFEMorphologyElement); | 35 DECLARE_NODE_FACTORY(SVGFEMorphologyElement); |
35 | 36 |
36 SVGAnimatedNumber* radiusX() { return m_radius->firstNumber(); } | 37 SVGAnimatedNumber* radiusX() { return m_radius->firstNumber(); } |
37 SVGAnimatedNumber* radiusY() { return m_radius->secondNumber(); } | 38 SVGAnimatedNumber* radiusY() { return m_radius->secondNumber(); } |
38 SVGAnimatedString* in1() { return m_in1.get(); } | 39 SVGAnimatedString* in1() { return m_in1.get(); } |
39 SVGAnimatedEnumeration<MorphologyOperatorType>* svgOperator() { return m_svg
Operator.get(); } | 40 SVGAnimatedEnumeration<MorphologyOperatorType>* svgOperator() { return m_svg
Operator.get(); } |
40 | 41 |
41 private: | 42 private: |
42 explicit SVGFEMorphologyElement(Document&); | 43 explicit SVGFEMorphologyElement(Document&); |
43 | 44 |
44 bool isSupportedAttribute(const QualifiedName&); | 45 bool isSupportedAttribute(const QualifiedName&); |
45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 46 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
46 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; | 47 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; |
47 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 48 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
48 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 49 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
49 | 50 |
50 RefPtr<SVGAnimatedNumberOptionalNumber> m_radius; | 51 RefPtr<SVGAnimatedNumberOptionalNumber> m_radius; |
51 RefPtr<SVGAnimatedString> m_in1; | 52 RefPtr<SVGAnimatedString> m_in1; |
52 RefPtr<SVGAnimatedEnumeration<MorphologyOperatorType> > m_svgOperator; | 53 RefPtr<SVGAnimatedEnumeration<MorphologyOperatorType> > m_svgOperator; |
53 }; | 54 }; |
54 | 55 |
55 } // namespace blink | 56 } // namespace blink |
56 | 57 |
57 #endif | 58 #endif // SVGFEMorphologyElement_h |
OLD | NEW |