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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 if (value == "xor") 68 if (value == "xor")
69 return FECOMPOSITE_OPERATOR_XOR; 69 return FECOMPOSITE_OPERATOR_XOR;
70 if (value == "arithmetic") 70 if (value == "arithmetic")
71 return FECOMPOSITE_OPERATOR_ARITHMETIC; 71 return FECOMPOSITE_OPERATOR_ARITHMETIC;
72 return FECOMPOSITE_OPERATOR_UNKNOWN; 72 return FECOMPOSITE_OPERATOR_UNKNOWN;
73 } 73 }
74 }; 74 };
75 75
76 class SVGFECompositeElement FINAL : public SVGFilterPrimitiveStandardAttributes { 76 class SVGFECompositeElement FINAL : public SVGFilterPrimitiveStandardAttributes {
77 public: 77 public:
78 static PassRefPtr<SVGFECompositeElement> create(const QualifiedName&, Docume nt*); 78 static PassRefPtr<SVGFECompositeElement> create(const QualifiedName&, Docume nt&);
79 79
80 private: 80 private:
81 SVGFECompositeElement(const QualifiedName&, Document*); 81 SVGFECompositeElement(const QualifiedName&, Document&);
82 82
83 bool isSupportedAttribute(const QualifiedName&); 83 bool isSupportedAttribute(const QualifiedName&);
84 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 84 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
85 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); 85 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&);
86 virtual void svgAttributeChanged(const QualifiedName&); 86 virtual void svgAttributeChanged(const QualifiedName&);
87 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 87 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
88 88
89 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFECompositeElement) 89 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFECompositeElement)
90 DECLARE_ANIMATED_STRING(In1, in1) 90 DECLARE_ANIMATED_STRING(In1, in1)
91 DECLARE_ANIMATED_STRING(In2, in2) 91 DECLARE_ANIMATED_STRING(In2, in2)
92 DECLARE_ANIMATED_ENUMERATION(SVGOperator, svgOperator, CompositeOperatio nType) 92 DECLARE_ANIMATED_ENUMERATION(SVGOperator, svgOperator, CompositeOperatio nType)
93 DECLARE_ANIMATED_NUMBER(K1, k1) 93 DECLARE_ANIMATED_NUMBER(K1, k1)
94 DECLARE_ANIMATED_NUMBER(K2, k2) 94 DECLARE_ANIMATED_NUMBER(K2, k2)
95 DECLARE_ANIMATED_NUMBER(K3, k3) 95 DECLARE_ANIMATED_NUMBER(K3, k3)
96 DECLARE_ANIMATED_NUMBER(K4, k4) 96 DECLARE_ANIMATED_NUMBER(K4, k4)
97 END_DECLARE_ANIMATED_PROPERTIES 97 END_DECLARE_ANIMATED_PROPERTIES
98 }; 98 };
99 99
100 } // namespace WebCore 100 } // namespace WebCore
101 101
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEComponentTransferElement.cpp ('k') | Source/core/svg/SVGFECompositeElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698