Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: Source/core/svg/SVGFEConvolveMatrixElement.h

Issue 148173018: [SVG] SVGAnimatedString{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove debug print Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 void setOrder(float orderX, float orderY); 71 void setOrder(float orderX, float orderY);
72 void setKernelUnitLength(float kernelUnitLengthX, float kernelUnitLengthY); 72 void setKernelUnitLength(float kernelUnitLengthX, float kernelUnitLengthY);
73 73
74 SVGAnimatedBoolean* preserveAlpha() { return m_preserveAlpha.get(); } 74 SVGAnimatedBoolean* preserveAlpha() { return m_preserveAlpha.get(); }
75 SVGAnimatedNumber* divisor() { return m_divisor.get(); } 75 SVGAnimatedNumber* divisor() { return m_divisor.get(); }
76 SVGAnimatedNumber* bias() { return m_bias.get(); } 76 SVGAnimatedNumber* bias() { return m_bias.get(); }
77 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); } 77 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); }
78 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); } 78 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); }
79 SVGAnimatedNumberList* kernelMatrix() { return m_kernelMatrix.get(); } 79 SVGAnimatedNumberList* kernelMatrix() { return m_kernelMatrix.get(); }
80 SVGAnimatedString* in1() { return m_in1.get(); }
80 81
81 private: 82 private:
82 explicit SVGFEConvolveMatrixElement(Document&); 83 explicit SVGFEConvolveMatrixElement(Document&);
83 84
84 bool isSupportedAttribute(const QualifiedName&); 85 bool isSupportedAttribute(const QualifiedName&);
85 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 86 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
86 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O VERRIDE; 87 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O VERRIDE;
87 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 88 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
88 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; 89 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE;
89 90
90 static const AtomicString& orderXIdentifier(); 91 static const AtomicString& orderXIdentifier();
91 static const AtomicString& orderYIdentifier(); 92 static const AtomicString& orderYIdentifier();
92 93
93 RefPtr<SVGAnimatedBoolean> m_preserveAlpha; 94 RefPtr<SVGAnimatedBoolean> m_preserveAlpha;
94 RefPtr<SVGAnimatedNumber> m_divisor; 95 RefPtr<SVGAnimatedNumber> m_divisor;
95 RefPtr<SVGAnimatedNumber> m_bias; 96 RefPtr<SVGAnimatedNumber> m_bias;
96 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; 97 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength;
97 RefPtr<SVGAnimatedNumberList> m_kernelMatrix; 98 RefPtr<SVGAnimatedNumberList> m_kernelMatrix;
99 RefPtr<SVGAnimatedString> m_in1;
98 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEConvolveMatrixElement) 100 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEConvolveMatrixElement)
99 DECLARE_ANIMATED_STRING(In1, in1)
100 DECLARE_ANIMATED_INTEGER(OrderX, orderX) 101 DECLARE_ANIMATED_INTEGER(OrderX, orderX)
101 DECLARE_ANIMATED_INTEGER(OrderY, orderY) 102 DECLARE_ANIMATED_INTEGER(OrderY, orderY)
102 DECLARE_ANIMATED_INTEGER(TargetX, targetX) 103 DECLARE_ANIMATED_INTEGER(TargetX, targetX)
103 DECLARE_ANIMATED_INTEGER(TargetY, targetY) 104 DECLARE_ANIMATED_INTEGER(TargetY, targetY)
104 DECLARE_ANIMATED_ENUMERATION(EdgeMode, edgeMode, EdgeModeType) 105 DECLARE_ANIMATED_ENUMERATION(EdgeMode, edgeMode, EdgeModeType)
105 END_DECLARE_ANIMATED_PROPERTIES 106 END_DECLARE_ANIMATED_PROPERTIES
106 }; 107 };
107 108
108 } // namespace WebCore 109 } // namespace WebCore
109 110
110 #endif 111 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFECompositeElement.cpp ('k') | Source/core/svg/SVGFEConvolveMatrixElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698