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 13 matching lines...) Expand all Loading... |
24 #include "core/svg/SVGAnimatedNumber.h" | 24 #include "core/svg/SVGAnimatedNumber.h" |
25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
26 #include "platform/graphics/filters/FEDisplacementMap.h" | 26 #include "platform/graphics/filters/FEDisplacementMap.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace WebCore { |
29 | 29 |
30 template<> const SVGEnumerationStringEntries& getStaticStringEntries<ChannelSele
ctorType>(); | 30 template<> const SVGEnumerationStringEntries& getStaticStringEntries<ChannelSele
ctorType>(); |
31 | 31 |
32 class SVGFEDisplacementMapElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { | 32 class SVGFEDisplacementMapElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { |
33 public: | 33 public: |
34 DEFINE_NODE_FACTORY(SVGFEDisplacementMapElement); | 34 DECLARE_NODE_FACTORY(SVGFEDisplacementMapElement); |
35 | 35 |
36 static ChannelSelectorType stringToChannel(const String&); | 36 static ChannelSelectorType stringToChannel(const String&); |
37 | 37 |
38 SVGAnimatedNumber* scale() { return m_scale.get(); } | 38 SVGAnimatedNumber* scale() { return m_scale.get(); } |
39 SVGAnimatedString* in1() { return m_in1.get(); } | 39 SVGAnimatedString* in1() { return m_in1.get(); } |
40 SVGAnimatedString* in2() { return m_in2.get(); } | 40 SVGAnimatedString* in2() { return m_in2.get(); } |
41 SVGAnimatedEnumeration<ChannelSelectorType>* xChannelSelector() { return m_x
ChannelSelector.get(); } | 41 SVGAnimatedEnumeration<ChannelSelectorType>* xChannelSelector() { return m_x
ChannelSelector.get(); } |
42 SVGAnimatedEnumeration<ChannelSelectorType>* yChannelSelector() { return m_y
ChannelSelector.get(); } | 42 SVGAnimatedEnumeration<ChannelSelectorType>* yChannelSelector() { return m_y
ChannelSelector.get(); } |
43 | 43 |
44 private: | 44 private: |
45 SVGFEDisplacementMapElement(Document&); | 45 SVGFEDisplacementMapElement(Document&); |
46 | 46 |
47 bool isSupportedAttribute(const QualifiedName&); | 47 bool isSupportedAttribute(const QualifiedName&); |
48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
49 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; | 49 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; |
50 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 50 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
51 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 51 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
52 | 52 |
53 RefPtr<SVGAnimatedNumber> m_scale; | 53 RefPtr<SVGAnimatedNumber> m_scale; |
54 RefPtr<SVGAnimatedString> m_in1; | 54 RefPtr<SVGAnimatedString> m_in1; |
55 RefPtr<SVGAnimatedString> m_in2; | 55 RefPtr<SVGAnimatedString> m_in2; |
56 RefPtr<SVGAnimatedEnumeration<ChannelSelectorType> > m_xChannelSelector; | 56 RefPtr<SVGAnimatedEnumeration<ChannelSelectorType> > m_xChannelSelector; |
57 RefPtr<SVGAnimatedEnumeration<ChannelSelectorType> > m_yChannelSelector; | 57 RefPtr<SVGAnimatedEnumeration<ChannelSelectorType> > m_yChannelSelector; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace WebCore | 60 } // namespace WebCore |
61 | 61 |
62 #endif // SVGFEDisplacementMapElement_h | 62 #endif // SVGFEDisplacementMapElement_h |
OLD | NEW |