| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 if (value == "lighten") | 66 if (value == "lighten") |
| 67 return FEBLEND_MODE_LIGHTEN; | 67 return FEBLEND_MODE_LIGHTEN; |
| 68 return FEBLEND_MODE_UNKNOWN; | 68 return FEBLEND_MODE_UNKNOWN; |
| 69 } | 69 } |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 class SVGFEBlendElement : public SVGFilterPrimitiveStandardAttributes { | 72 class SVGFEBlendElement : public SVGFilterPrimitiveStandardAttributes { |
| 73 public: | 73 public: |
| 74 static PassRefPtr<SVGFEBlendElement> create(const QualifiedName&, const Hand
le<Document>&); | 74 static PassRefPtr<SVGFEBlendElement> create(const QualifiedName&, const Hand
le<Document>&); |
| 75 | 75 |
| 76 virtual void accept(Visitor* visitor) const OVERRIDE { SVGFilterPrimitiveSta
ndardAttributes::accept(visitor); } |
| 77 |
| 76 private: | 78 private: |
| 77 SVGFEBlendElement(const QualifiedName&, const Handle<Document>&); | 79 SVGFEBlendElement(const QualifiedName&, const Handle<Document>&); |
| 78 | 80 |
| 79 bool isSupportedAttribute(const QualifiedName&); | 81 bool isSupportedAttribute(const QualifiedName&); |
| 80 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 82 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 81 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); | 83 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); |
| 82 virtual void svgAttributeChanged(const QualifiedName&); | 84 virtual void svgAttributeChanged(const QualifiedName&); |
| 83 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 85 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
| 84 | 86 |
| 85 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement) | 87 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement) |
| 86 DECLARE_ANIMATED_STRING(In1, in1) | 88 DECLARE_ANIMATED_STRING(In1, in1) |
| 87 DECLARE_ANIMATED_STRING(In2, in2) | 89 DECLARE_ANIMATED_STRING(In2, in2) |
| 88 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType) | 90 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType) |
| 89 END_DECLARE_ANIMATED_PROPERTIES | 91 END_DECLARE_ANIMATED_PROPERTIES |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace WebCore | 94 } // namespace WebCore |
| 93 | 95 |
| 94 #endif // ENABLE(SVG) | 96 #endif // ENABLE(SVG) |
| 95 #endif | 97 #endif |
| OLD | NEW |