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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 if (value == "hueRotate") | 60 if (value == "hueRotate") |
61 return FECOLORMATRIX_TYPE_HUEROTATE; | 61 return FECOLORMATRIX_TYPE_HUEROTATE; |
62 if (value == "luminanceToAlpha") | 62 if (value == "luminanceToAlpha") |
63 return FECOLORMATRIX_TYPE_LUMINANCETOALPHA; | 63 return FECOLORMATRIX_TYPE_LUMINANCETOALPHA; |
64 return FECOLORMATRIX_TYPE_UNKNOWN; | 64 return FECOLORMATRIX_TYPE_UNKNOWN; |
65 } | 65 } |
66 }; | 66 }; |
67 | 67 |
68 class SVGFEColorMatrixElement FINAL : public SVGFilterPrimitiveStandardAttribute
s { | 68 class SVGFEColorMatrixElement FINAL : public SVGFilterPrimitiveStandardAttribute
s { |
69 public: | 69 public: |
70 static PassRefPtr<SVGFEColorMatrixElement> create(const QualifiedName&, Docu
ment*); | 70 static PassRefPtr<SVGFEColorMatrixElement> create(const QualifiedName&, Docu
ment&); |
71 | 71 |
72 private: | 72 private: |
73 SVGFEColorMatrixElement(const QualifiedName&, Document*); | 73 SVGFEColorMatrixElement(const QualifiedName&, Document&); |
74 | 74 |
75 bool isSupportedAttribute(const QualifiedName&); | 75 bool isSupportedAttribute(const QualifiedName&); |
76 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 76 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
77 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); | 77 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); |
78 virtual void svgAttributeChanged(const QualifiedName&); | 78 virtual void svgAttributeChanged(const QualifiedName&); |
79 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 79 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
80 | 80 |
81 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEColorMatrixElement) | 81 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEColorMatrixElement) |
82 DECLARE_ANIMATED_STRING(In1, in1) | 82 DECLARE_ANIMATED_STRING(In1, in1) |
83 DECLARE_ANIMATED_ENUMERATION(Type, type, ColorMatrixType) | 83 DECLARE_ANIMATED_ENUMERATION(Type, type, ColorMatrixType) |
84 DECLARE_ANIMATED_NUMBER_LIST(Values, values) | 84 DECLARE_ANIMATED_NUMBER_LIST(Values, values) |
85 END_DECLARE_ANIMATED_PROPERTIES | 85 END_DECLARE_ANIMATED_PROPERTIES |
86 }; | 86 }; |
87 | 87 |
88 } // namespace WebCore | 88 } // namespace WebCore |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |