OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return FEBLEND_MODE_DARKEN; | 64 return FEBLEND_MODE_DARKEN; |
65 if (value == "lighten") | 65 if (value == "lighten") |
66 return FEBLEND_MODE_LIGHTEN; | 66 return FEBLEND_MODE_LIGHTEN; |
67 return FEBLEND_MODE_UNKNOWN; | 67 return FEBLEND_MODE_UNKNOWN; |
68 } | 68 } |
69 }; | 69 }; |
70 | 70 |
71 class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes { | 71 class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes { |
72 public: | 72 public: |
73 static PassRefPtr<SVGFEBlendElement> create(Document&); | 73 static PassRefPtr<SVGFEBlendElement> create(Document&); |
| 74 SVGAnimatedString* in1() { return m_in1.get(); } |
| 75 SVGAnimatedString* in2() { return m_in2.get(); } |
74 | 76 |
75 private: | 77 private: |
76 explicit SVGFEBlendElement(Document&); | 78 explicit SVGFEBlendElement(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 |
| 86 RefPtr<SVGAnimatedString> m_in1; |
| 87 RefPtr<SVGAnimatedString> m_in2; |
84 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement) | 88 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement) |
85 DECLARE_ANIMATED_STRING(In1, in1) | |
86 DECLARE_ANIMATED_STRING(In2, in2) | |
87 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType) | 89 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType) |
88 END_DECLARE_ANIMATED_PROPERTIES | 90 END_DECLARE_ANIMATED_PROPERTIES |
89 }; | 91 }; |
90 | 92 |
91 } // namespace WebCore | 93 } // namespace WebCore |
92 | 94 |
93 #endif | 95 #endif |
OLD | NEW |