| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (value == "arithmetic") | 71 if (value == "arithmetic") |
| 72 return FECOMPOSITE_OPERATOR_ARITHMETIC; | 72 return FECOMPOSITE_OPERATOR_ARITHMETIC; |
| 73 return FECOMPOSITE_OPERATOR_UNKNOWN; | 73 return FECOMPOSITE_OPERATOR_UNKNOWN; |
| 74 } | 74 } |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 class SVGFECompositeElement : public SVGFilterPrimitiveStandardAttributes { | 77 class SVGFECompositeElement : public SVGFilterPrimitiveStandardAttributes { |
| 78 public: | 78 public: |
| 79 static PassRefPtr<SVGFECompositeElement> create(const QualifiedName&, const
Handle<Document>&); | 79 static PassRefPtr<SVGFECompositeElement> create(const QualifiedName&, const
Handle<Document>&); |
| 80 | 80 |
| 81 virtual void accept(Visitor* visitor) const OVERRIDE { SVGFilterPrimitiveSta
ndardAttributes::accept(visitor); } |
| 82 |
| 81 private: | 83 private: |
| 82 SVGFECompositeElement(const QualifiedName&, const Handle<Document>&); | 84 SVGFECompositeElement(const QualifiedName&, const Handle<Document>&); |
| 83 | 85 |
| 84 bool isSupportedAttribute(const QualifiedName&); | 86 bool isSupportedAttribute(const QualifiedName&); |
| 85 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 87 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 86 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); | 88 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); |
| 87 virtual void svgAttributeChanged(const QualifiedName&); | 89 virtual void svgAttributeChanged(const QualifiedName&); |
| 88 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 90 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
| 89 | 91 |
| 90 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFECompositeElement) | 92 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFECompositeElement) |
| 91 DECLARE_ANIMATED_STRING(In1, in1) | 93 DECLARE_ANIMATED_STRING(In1, in1) |
| 92 DECLARE_ANIMATED_STRING(In2, in2) | 94 DECLARE_ANIMATED_STRING(In2, in2) |
| 93 DECLARE_ANIMATED_ENUMERATION(_operator, _operator, CompositeOperationTyp
e) | 95 DECLARE_ANIMATED_ENUMERATION(_operator, _operator, CompositeOperationTyp
e) |
| 94 DECLARE_ANIMATED_NUMBER(K1, k1) | 96 DECLARE_ANIMATED_NUMBER(K1, k1) |
| 95 DECLARE_ANIMATED_NUMBER(K2, k2) | 97 DECLARE_ANIMATED_NUMBER(K2, k2) |
| 96 DECLARE_ANIMATED_NUMBER(K3, k3) | 98 DECLARE_ANIMATED_NUMBER(K3, k3) |
| 97 DECLARE_ANIMATED_NUMBER(K4, k4) | 99 DECLARE_ANIMATED_NUMBER(K4, k4) |
| 98 END_DECLARE_ANIMATED_PROPERTIES | 100 END_DECLARE_ANIMATED_PROPERTIES |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } // namespace WebCore | 103 } // namespace WebCore |
| 102 | 104 |
| 103 #endif // ENABLE(SVG) | 105 #endif // ENABLE(SVG) |
| 104 #endif | 106 #endif |
| OLD | NEW |