OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com> | 2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com> |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 }; | 65 }; |
66 | 66 |
67 class SVGFEDisplacementMapElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { | 67 class SVGFEDisplacementMapElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { |
68 public: | 68 public: |
69 static PassRefPtr<SVGFEDisplacementMapElement> create(Document&); | 69 static PassRefPtr<SVGFEDisplacementMapElement> create(Document&); |
70 | 70 |
71 static ChannelSelectorType stringToChannel(const String&); | 71 static ChannelSelectorType stringToChannel(const String&); |
72 | 72 |
73 SVGAnimatedNumber* scale() { return m_scale.get(); } | 73 SVGAnimatedNumber* scale() { return m_scale.get(); } |
| 74 SVGAnimatedString* in1() { return m_in1.get(); } |
| 75 SVGAnimatedString* in2() { return m_in2.get(); } |
74 | 76 |
75 private: | 77 private: |
76 SVGFEDisplacementMapElement(Document&); | 78 SVGFEDisplacementMapElement(Document&); |
77 | 79 |
78 bool isSupportedAttribute(const QualifiedName&); | 80 bool isSupportedAttribute(const QualifiedName&); |
79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 81 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
80 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; | 82 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; |
81 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 83 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
82 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 84 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
83 | 85 |
84 RefPtr<SVGAnimatedNumber> m_scale; | 86 RefPtr<SVGAnimatedNumber> m_scale; |
| 87 RefPtr<SVGAnimatedString> m_in1; |
| 88 RefPtr<SVGAnimatedString> m_in2; |
85 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement) | 89 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement) |
86 DECLARE_ANIMATED_STRING(In1, in1) | |
87 DECLARE_ANIMATED_STRING(In2, in2) | |
88 DECLARE_ANIMATED_ENUMERATION(XChannelSelector, xChannelSelector, Channel
SelectorType) | 90 DECLARE_ANIMATED_ENUMERATION(XChannelSelector, xChannelSelector, Channel
SelectorType) |
89 DECLARE_ANIMATED_ENUMERATION(YChannelSelector, yChannelSelector, Channel
SelectorType) | 91 DECLARE_ANIMATED_ENUMERATION(YChannelSelector, yChannelSelector, Channel
SelectorType) |
90 END_DECLARE_ANIMATED_PROPERTIES | 92 END_DECLARE_ANIMATED_PROPERTIES |
91 }; | 93 }; |
92 | 94 |
93 } // namespace WebCore | 95 } // namespace WebCore |
94 | 96 |
95 #endif // SVGFEDisplacementMapElement_h | 97 #endif // SVGFEDisplacementMapElement_h |
OLD | NEW |