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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (value == "B") | 59 if (value == "B") |
60 return CHANNEL_B; | 60 return CHANNEL_B; |
61 if (value == "A") | 61 if (value == "A") |
62 return CHANNEL_A; | 62 return CHANNEL_A; |
63 return CHANNEL_UNKNOWN; | 63 return CHANNEL_UNKNOWN; |
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(const QualifiedName&,
Document*); | 69 static PassRefPtr<SVGFEDisplacementMapElement> create(const QualifiedName&,
Document&); |
70 | 70 |
71 static ChannelSelectorType stringToChannel(const String&); | 71 static ChannelSelectorType stringToChannel(const String&); |
72 | 72 |
73 private: | 73 private: |
74 SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*); | 74 SVGFEDisplacementMapElement(const QualifiedName& tagName, Document&); |
75 | 75 |
76 bool isSupportedAttribute(const QualifiedName&); | 76 bool isSupportedAttribute(const QualifiedName&); |
77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
78 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); | 78 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); |
79 virtual void svgAttributeChanged(const QualifiedName&); | 79 virtual void svgAttributeChanged(const QualifiedName&); |
80 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 80 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
81 | 81 |
82 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement) | 82 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement) |
83 DECLARE_ANIMATED_STRING(In1, in1) | 83 DECLARE_ANIMATED_STRING(In1, in1) |
84 DECLARE_ANIMATED_STRING(In2, in2) | 84 DECLARE_ANIMATED_STRING(In2, in2) |
85 DECLARE_ANIMATED_ENUMERATION(XChannelSelector, xChannelSelector, Channel
SelectorType) | 85 DECLARE_ANIMATED_ENUMERATION(XChannelSelector, xChannelSelector, Channel
SelectorType) |
86 DECLARE_ANIMATED_ENUMERATION(YChannelSelector, yChannelSelector, Channel
SelectorType) | 86 DECLARE_ANIMATED_ENUMERATION(YChannelSelector, yChannelSelector, Channel
SelectorType) |
87 DECLARE_ANIMATED_NUMBER(Scale, scale) | 87 DECLARE_ANIMATED_NUMBER(Scale, scale) |
88 END_DECLARE_ANIMATED_PROPERTIES | 88 END_DECLARE_ANIMATED_PROPERTIES |
89 }; | 89 }; |
90 | 90 |
91 } // namespace WebCore | 91 } // namespace WebCore |
92 | 92 |
93 #endif // SVGFEDisplacementMapElement_h | 93 #endif // SVGFEDisplacementMapElement_h |
OLD | NEW |