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

Side by Side Diff: Source/core/svg/SVGFilterElement.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/SVGFETurbulenceElement.cpp ('k') | Source/core/svg/SVGFilterElement.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, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 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 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 14 matching lines...) Expand all
25 25
26 #include "core/SVGNames.h" 26 #include "core/SVGNames.h"
27 #include "core/svg/SVGAnimatedBoolean.h" 27 #include "core/svg/SVGAnimatedBoolean.h"
28 #include "core/svg/SVGAnimatedEnumeration.h" 28 #include "core/svg/SVGAnimatedEnumeration.h"
29 #include "core/svg/SVGAnimatedInteger.h" 29 #include "core/svg/SVGAnimatedInteger.h"
30 #include "core/svg/SVGAnimatedIntegerOptionalInteger.h" 30 #include "core/svg/SVGAnimatedIntegerOptionalInteger.h"
31 #include "core/svg/SVGAnimatedLength.h" 31 #include "core/svg/SVGAnimatedLength.h"
32 #include "core/svg/SVGElement.h" 32 #include "core/svg/SVGElement.h"
33 #include "core/svg/SVGURIReference.h" 33 #include "core/svg/SVGURIReference.h"
34 #include "core/svg/SVGUnitTypes.h" 34 #include "core/svg/SVGUnitTypes.h"
35 #include "platform/heap/Handle.h"
35 36
36 namespace blink { 37 namespace blink {
37 38
38 class SVGFilterElement final : public SVGElement, 39 class SVGFilterElement final : public SVGElement,
39 public SVGURIReference { 40 public SVGURIReference {
40 DEFINE_WRAPPERTYPEINFO(); 41 DEFINE_WRAPPERTYPEINFO();
42 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGFilterElement);
41 public: 43 public:
42 DECLARE_NODE_FACTORY(SVGFilterElement); 44 DECLARE_NODE_FACTORY(SVGFilterElement);
43 virtual void trace(Visitor*) override; 45 virtual void trace(Visitor*) override;
44 46
45 void setFilterRes(unsigned x, unsigned y); 47 void setFilterRes(unsigned x, unsigned y);
46 void addClient(Node*); 48 void addClient(Node*);
47 void removeClient(Node*); 49 void removeClient(Node*);
48 50
49 SVGAnimatedLength* x() const { return m_x.get(); } 51 SVGAnimatedLength* x() const { return m_x.get(); }
50 SVGAnimatedLength* y() const { return m_y.get(); } 52 SVGAnimatedLength* y() const { return m_y.get(); }
(...skipping 11 matching lines...) Expand all
62 64
63 bool isSupportedAttribute(const QualifiedName&); 65 bool isSupportedAttribute(const QualifiedName&);
64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 66 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
65 virtual void svgAttributeChanged(const QualifiedName&) override; 67 virtual void svgAttributeChanged(const QualifiedName&) override;
66 virtual void childrenChanged(const ChildrenChange&) override; 68 virtual void childrenChanged(const ChildrenChange&) override;
67 69
68 virtual RenderObject* createRenderer(RenderStyle*) override; 70 virtual RenderObject* createRenderer(RenderStyle*) override;
69 71
70 virtual bool selfHasRelativeLengths() const override; 72 virtual bool selfHasRelativeLengths() const override;
71 73
72 RefPtr<SVGAnimatedLength> m_x; 74 RefPtrWillBeMember<SVGAnimatedLength> m_x;
73 RefPtr<SVGAnimatedLength> m_y; 75 RefPtrWillBeMember<SVGAnimatedLength> m_y;
74 RefPtr<SVGAnimatedLength> m_width; 76 RefPtrWillBeMember<SVGAnimatedLength> m_width;
75 RefPtr<SVGAnimatedLength> m_height; 77 RefPtrWillBeMember<SVGAnimatedLength> m_height;
76 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_filterUnits; 78 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_fil terUnits;
77 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_primitiveUnits; 79 RefPtrWillBeMember<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_pri mitiveUnits;
78 RefPtr<SVGAnimatedIntegerOptionalInteger> m_filterRes; 80 RefPtrWillBeMember<SVGAnimatedIntegerOptionalInteger> m_filterRes;
79 81
80 WillBeHeapHashSet<RefPtrWillBeMember<Node> > m_clientsToAdd; 82 WillBeHeapHashSet<RefPtrWillBeMember<Node> > m_clientsToAdd;
81 }; 83 };
82 84
83 } // namespace blink 85 } // namespace blink
84 86
85 #endif // SVGFilterElement_h 87 #endif // SVGFilterElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFETurbulenceElement.cpp ('k') | Source/core/svg/SVGFilterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698