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

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

Issue 131253002: [SVG] SVGAnimatedBoolean migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase/address comments Created 6 years, 11 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SVGAnimatedBoolean* preserveAlpha() const { return m_preserveAlpha.get(); }
pdr. 2014/01/10 18:57:32 Can we refptr-ize this return?
haraken 2014/01/14 03:32:47 I don't have a strong opinion here, but as far as
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&); 80 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&);
79 virtual void svgAttributeChanged(const QualifiedName&); 81 virtual void svgAttributeChanged(const QualifiedName&);
80 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 82 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698