OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |