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 13 matching lines...) Expand all Loading... |
24 #include "core/svg/SVGAnimatedEnumeration.h" | 24 #include "core/svg/SVGAnimatedEnumeration.h" |
25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
26 #include "platform/graphics/filters/FEBlend.h" | 26 #include "platform/graphics/filters/FEBlend.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace WebCore { |
29 | 29 |
30 template<> const SVGEnumerationStringEntries& getStaticStringEntries<BlendModeTy
pe>(); | 30 template<> const SVGEnumerationStringEntries& getStaticStringEntries<BlendModeTy
pe>(); |
31 | 31 |
32 class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes { | 32 class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes { |
33 public: | 33 public: |
34 DEFINE_NODE_FACTORY(SVGFEBlendElement); | 34 DECLARE_NODE_FACTORY(SVGFEBlendElement); |
35 SVGAnimatedString* in1() { return m_in1.get(); } | 35 SVGAnimatedString* in1() { return m_in1.get(); } |
36 SVGAnimatedString* in2() { return m_in2.get(); } | 36 SVGAnimatedString* in2() { return m_in2.get(); } |
37 SVGAnimatedEnumeration<BlendModeType>* mode() { return m_mode.get(); } | 37 SVGAnimatedEnumeration<BlendModeType>* mode() { return m_mode.get(); } |
38 | 38 |
39 private: | 39 private: |
40 explicit SVGFEBlendElement(Document&); | 40 explicit SVGFEBlendElement(Document&); |
41 | 41 |
42 bool isSupportedAttribute(const QualifiedName&); | 42 bool isSupportedAttribute(const QualifiedName&); |
43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
44 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; | 44 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName) OVERRIDE; |
45 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 45 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
46 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 46 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
47 | 47 |
48 RefPtr<SVGAnimatedString> m_in1; | 48 RefPtr<SVGAnimatedString> m_in1; |
49 RefPtr<SVGAnimatedString> m_in2; | 49 RefPtr<SVGAnimatedString> m_in2; |
50 RefPtr<SVGAnimatedEnumeration<BlendModeType> > m_mode; | 50 RefPtr<SVGAnimatedEnumeration<BlendModeType> > m_mode; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace WebCore | 53 } // namespace WebCore |
54 | 54 |
55 #endif | 55 #endif |
OLD | NEW |