| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 if (value == "screen") | 62 if (value == "screen") |
| 63 return FEBLEND_MODE_SCREEN; | 63 return FEBLEND_MODE_SCREEN; |
| 64 if (value == "darken") | 64 if (value == "darken") |
| 65 return FEBLEND_MODE_DARKEN; | 65 return FEBLEND_MODE_DARKEN; |
| 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 FINAL : public SVGFilterPrimitiveStandardAttributes { |
| 73 public: | 73 public: |
| 74 static PassRefPtr<SVGFEBlendElement> create(const QualifiedName&, Document*)
; | 74 static PassRefPtr<SVGFEBlendElement> create(const QualifiedName&, Document*)
; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 SVGFEBlendElement(const QualifiedName&, Document*); | 77 SVGFEBlendElement(const QualifiedName&, Document*); |
| 78 | 78 |
| 79 bool isSupportedAttribute(const QualifiedName&); | 79 bool isSupportedAttribute(const QualifiedName&); |
| 80 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 80 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 81 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); | 81 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at
trName); |
| 82 virtual void svgAttributeChanged(const QualifiedName&); | 82 virtual void svgAttributeChanged(const QualifiedName&); |
| 83 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 83 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
| 84 | 84 |
| 85 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement) | 85 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement) |
| 86 DECLARE_ANIMATED_STRING(In1, in1) | 86 DECLARE_ANIMATED_STRING(In1, in1) |
| 87 DECLARE_ANIMATED_STRING(In2, in2) | 87 DECLARE_ANIMATED_STRING(In2, in2) |
| 88 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType) | 88 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType) |
| 89 END_DECLARE_ANIMATED_PROPERTIES | 89 END_DECLARE_ANIMATED_PROPERTIES |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace WebCore | 92 } // namespace WebCore |
| 93 | 93 |
| 94 #endif // ENABLE(SVG) | 94 #endif // ENABLE(SVG) |
| 95 #endif | 95 #endif |
| OLD | NEW |