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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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
« no previous file with comments | « Source/core/svg/SVGEnumeration.cpp ('k') | Source/core/svg/SVGFEBlendElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGFEBlendElement_h 21 #ifndef SVGFEBlendElement_h
22 #define SVGFEBlendElement_h 22 #define SVGFEBlendElement_h
23 23
24 #include "core/svg/SVGAnimatedEnumeration.h" 24 #include "core/svg/SVGAnimatedEnumeration.h"
25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" 25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
26 #include "platform/heap/Handle.h"
26 27
27 namespace blink { 28 namespace blink {
28 29
29 class SVGFEBlendElement final : public SVGFilterPrimitiveStandardAttributes { 30 class SVGFEBlendElement final : public SVGFilterPrimitiveStandardAttributes {
30 DEFINE_WRAPPERTYPEINFO(); 31 DEFINE_WRAPPERTYPEINFO();
31 public: 32 public:
32 enum Mode { 33 enum Mode {
33 ModeUnknown = 0, 34 ModeUnknown = 0,
34 ModeNormal = 1, 35 ModeNormal = 1,
35 ModeMultiply = 2, 36 ModeMultiply = 2,
(...skipping 14 matching lines...) Expand all
50 ModeSaturation, 51 ModeSaturation,
51 ModeColor, 52 ModeColor,
52 ModeLuminosity, 53 ModeLuminosity,
53 }; 54 };
54 55
55 DECLARE_NODE_FACTORY(SVGFEBlendElement); 56 DECLARE_NODE_FACTORY(SVGFEBlendElement);
56 SVGAnimatedString* in1() { return m_in1.get(); } 57 SVGAnimatedString* in1() { return m_in1.get(); }
57 SVGAnimatedString* in2() { return m_in2.get(); } 58 SVGAnimatedString* in2() { return m_in2.get(); }
58 SVGAnimatedEnumeration<Mode>* mode() { return m_mode.get(); } 59 SVGAnimatedEnumeration<Mode>* mode() { return m_mode.get(); }
59 60
61 virtual void trace(Visitor*) override;
62
60 private: 63 private:
61 explicit SVGFEBlendElement(Document&); 64 explicit SVGFEBlendElement(Document&);
62 65
63 bool isSupportedAttribute(const QualifiedName&); 66 bool isSupportedAttribute(const QualifiedName&);
64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 67 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
65 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName) override; 68 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName) override;
66 virtual void svgAttributeChanged(const QualifiedName&) override; 69 virtual void svgAttributeChanged(const QualifiedName&) override;
67 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override; 70 virtual PassRefPtrWillBeRawPtr<FilterEffect> build(SVGFilterBuilder*, Filter *) override;
68 71
69 RefPtr<SVGAnimatedString> m_in1; 72 RefPtrWillBeMember<SVGAnimatedString> m_in1;
70 RefPtr<SVGAnimatedString> m_in2; 73 RefPtrWillBeMember<SVGAnimatedString> m_in2;
71 RefPtr<SVGAnimatedEnumeration<Mode> > m_mode; 74 RefPtrWillBeMember<SVGAnimatedEnumeration<Mode> > m_mode;
72 }; 75 };
73 76
74 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGFEBlendE lement::Mode>(); 77 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGFEBlendE lement::Mode>();
75 template<> unsigned short getMaxExposedEnumValue<SVGFEBlendElement::Mode>(); 78 template<> unsigned short getMaxExposedEnumValue<SVGFEBlendElement::Mode>();
76 79
77 } // namespace blink 80 } // namespace blink
78 81
79 #endif // SVGFEBlendElement_h 82 #endif // SVGFEBlendElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGEnumeration.cpp ('k') | Source/core/svg/SVGFEBlendElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698