OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 }; | 64 }; |
65 | 65 |
66 class SVGFEConvolveMatrixElement FINAL : public SVGFilterPrimitiveStandardAttrib
utes { | 66 class SVGFEConvolveMatrixElement FINAL : public SVGFilterPrimitiveStandardAttrib
utes { |
67 public: | 67 public: |
68 static PassRefPtr<SVGFEConvolveMatrixElement> create(Document&); | 68 static PassRefPtr<SVGFEConvolveMatrixElement> create(Document&); |
69 | 69 |
70 void setOrder(float orderX, float orderY); | 70 void setOrder(float orderX, float orderY); |
71 void setKernelUnitLength(float kernelUnitLengthX, float kernelUnitLengthY); | 71 void setKernelUnitLength(float kernelUnitLengthX, float kernelUnitLengthY); |
72 | 72 |
| 73 PassRefPtr<SVGAnimatedBoolean> preserveAlpha() const { return m_preserveAlph
a; } |
| 74 |
73 private: | 75 private: |
74 explicit SVGFEConvolveMatrixElement(Document&); | 76 explicit SVGFEConvolveMatrixElement(Document&); |
75 | 77 |
76 bool isSupportedAttribute(const QualifiedName&); | 78 bool isSupportedAttribute(const QualifiedName&); |
77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
78 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; | 80 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; |
79 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 81 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
80 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 82 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
81 | 83 |
82 static const AtomicString& orderXIdentifier(); | 84 static const AtomicString& orderXIdentifier(); |
83 static const AtomicString& orderYIdentifier(); | 85 static const AtomicString& orderYIdentifier(); |
84 static const AtomicString& kernelUnitLengthXIdentifier(); | 86 static const AtomicString& kernelUnitLengthXIdentifier(); |
85 static const AtomicString& kernelUnitLengthYIdentifier(); | 87 static const AtomicString& kernelUnitLengthYIdentifier(); |
86 | 88 |
| 89 RefPtr<SVGAnimatedBoolean> m_preserveAlpha; |
87 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEConvolveMatrixElement) | 90 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEConvolveMatrixElement) |
88 DECLARE_ANIMATED_STRING(In1, in1) | 91 DECLARE_ANIMATED_STRING(In1, in1) |
89 DECLARE_ANIMATED_INTEGER(OrderX, orderX) | 92 DECLARE_ANIMATED_INTEGER(OrderX, orderX) |
90 DECLARE_ANIMATED_INTEGER(OrderY, orderY) | 93 DECLARE_ANIMATED_INTEGER(OrderY, orderY) |
91 DECLARE_ANIMATED_NUMBER_LIST(KernelMatrix, kernelMatrix) | 94 DECLARE_ANIMATED_NUMBER_LIST(KernelMatrix, kernelMatrix) |
92 DECLARE_ANIMATED_NUMBER(Divisor, divisor) | 95 DECLARE_ANIMATED_NUMBER(Divisor, divisor) |
93 DECLARE_ANIMATED_NUMBER(Bias, bias) | 96 DECLARE_ANIMATED_NUMBER(Bias, bias) |
94 DECLARE_ANIMATED_INTEGER(TargetX, targetX) | 97 DECLARE_ANIMATED_INTEGER(TargetX, targetX) |
95 DECLARE_ANIMATED_INTEGER(TargetY, targetY) | 98 DECLARE_ANIMATED_INTEGER(TargetY, targetY) |
96 DECLARE_ANIMATED_ENUMERATION(EdgeMode, edgeMode, EdgeModeType) | 99 DECLARE_ANIMATED_ENUMERATION(EdgeMode, edgeMode, EdgeModeType) |
97 DECLARE_ANIMATED_NUMBER(KernelUnitLengthX, kernelUnitLengthX) | 100 DECLARE_ANIMATED_NUMBER(KernelUnitLengthX, kernelUnitLengthX) |
98 DECLARE_ANIMATED_NUMBER(KernelUnitLengthY, kernelUnitLengthY) | 101 DECLARE_ANIMATED_NUMBER(KernelUnitLengthY, kernelUnitLengthY) |
99 DECLARE_ANIMATED_BOOLEAN(PreserveAlpha, preserveAlpha) | |
100 END_DECLARE_ANIMATED_PROPERTIES | 102 END_DECLARE_ANIMATED_PROPERTIES |
101 }; | 103 }; |
102 | 104 |
103 } // namespace WebCore | 105 } // namespace WebCore |
104 | 106 |
105 #endif | 107 #endif |
OLD | NEW |