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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 if (value == "wrap") | 58 if (value == "wrap") |
59 return EDGEMODE_WRAP; | 59 return EDGEMODE_WRAP; |
60 if (value == "none") | 60 if (value == "none") |
61 return EDGEMODE_NONE; | 61 return EDGEMODE_NONE; |
62 return EDGEMODE_UNKNOWN; | 62 return EDGEMODE_UNKNOWN; |
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(const QualifiedName&, D
ocument*); | 68 static PassRefPtr<SVGFEConvolveMatrixElement> create(const QualifiedName&, D
ocument&); |
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 private: | 73 private: |
74 SVGFEConvolveMatrixElement(const QualifiedName&, Document*); | 74 SVGFEConvolveMatrixElement(const QualifiedName&, Document&); |
75 | 75 |
76 bool isSupportedAttribute(const QualifiedName&); | 76 bool isSupportedAttribute(const QualifiedName&); |
77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
78 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); | 78 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); |
79 virtual void svgAttributeChanged(const QualifiedName&); | 79 virtual void svgAttributeChanged(const QualifiedName&); |
80 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); | 80 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); |
81 | 81 |
82 static const AtomicString& orderXIdentifier(); | 82 static const AtomicString& orderXIdentifier(); |
83 static const AtomicString& orderYIdentifier(); | 83 static const AtomicString& orderYIdentifier(); |
84 static const AtomicString& kernelUnitLengthXIdentifier(); | 84 static const AtomicString& kernelUnitLengthXIdentifier(); |
(...skipping 11 matching lines...) Expand all Loading... |
96 DECLARE_ANIMATED_ENUMERATION(EdgeMode, edgeMode, EdgeModeType) | 96 DECLARE_ANIMATED_ENUMERATION(EdgeMode, edgeMode, EdgeModeType) |
97 DECLARE_ANIMATED_NUMBER(KernelUnitLengthX, kernelUnitLengthX) | 97 DECLARE_ANIMATED_NUMBER(KernelUnitLengthX, kernelUnitLengthX) |
98 DECLARE_ANIMATED_NUMBER(KernelUnitLengthY, kernelUnitLengthY) | 98 DECLARE_ANIMATED_NUMBER(KernelUnitLengthY, kernelUnitLengthY) |
99 DECLARE_ANIMATED_BOOLEAN(PreserveAlpha, preserveAlpha) | 99 DECLARE_ANIMATED_BOOLEAN(PreserveAlpha, preserveAlpha) |
100 END_DECLARE_ANIMATED_PROPERTIES | 100 END_DECLARE_ANIMATED_PROPERTIES |
101 }; | 101 }; |
102 | 102 |
103 } // namespace WebCore | 103 } // namespace WebCore |
104 | 104 |
105 #endif | 105 #endif |
OLD | NEW |