OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 SVGUseElement_h | 21 #ifndef SVGUseElement_h |
22 #define SVGUseElement_h | 22 #define SVGUseElement_h |
23 | 23 |
24 #include "core/SVGNames.h" | 24 #include "core/SVGNames.h" |
25 #include "core/fetch/DocumentResource.h" | 25 #include "core/fetch/DocumentResource.h" |
26 #include "core/svg/SVGAnimatedBoolean.h" | 26 #include "core/svg/SVGAnimatedBoolean.h" |
27 #include "core/svg/SVGAnimatedLength.h" | 27 #include "core/svg/SVGAnimatedLength.h" |
28 #include "core/svg/SVGGraphicsElement.h" | 28 #include "core/svg/SVGGraphicsElement.h" |
29 #include "core/svg/SVGURIReference.h" | 29 #include "core/svg/SVGURIReference.h" |
| 30 #include "platform/heap/Handle.h" |
30 | 31 |
31 namespace blink { | 32 namespace blink { |
32 | 33 |
33 class DocumentResource; | 34 class DocumentResource; |
34 | 35 |
35 class SVGUseElement final : public SVGGraphicsElement, | 36 class SVGUseElement final : public SVGGraphicsElement, |
36 public SVGURIReference, | 37 public SVGURIReference, |
37 public DocumentResourceClient { | 38 public DocumentResourceClient { |
38 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGUseElement); |
39 public: | 41 public: |
40 static PassRefPtrWillBeRawPtr<SVGUseElement> create(Document&); | 42 static PassRefPtrWillBeRawPtr<SVGUseElement> create(Document&); |
41 virtual ~SVGUseElement(); | 43 virtual ~SVGUseElement(); |
42 | 44 |
43 void invalidateShadowTree(); | 45 void invalidateShadowTree(); |
44 | 46 |
45 RenderObject* rendererClipChild() const; | 47 RenderObject* rendererClipChild() const; |
46 | 48 |
47 SVGAnimatedLength* x() const { return m_x.get(); } | 49 SVGAnimatedLength* x() const { return m_x.get(); } |
48 SVGAnimatedLength* y() const { return m_y.get(); } | 50 SVGAnimatedLength* y() const { return m_y.get(); } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 90 |
89 bool resourceIsStillLoading(); | 91 bool resourceIsStillLoading(); |
90 Document* externalDocument() const; | 92 Document* externalDocument() const; |
91 bool instanceTreeIsLoading(SVGElement*); | 93 bool instanceTreeIsLoading(SVGElement*); |
92 virtual void notifyFinished(Resource*) override; | 94 virtual void notifyFinished(Resource*) override; |
93 TreeScope* referencedScope() const; | 95 TreeScope* referencedScope() const; |
94 void setDocumentResource(ResourcePtr<DocumentResource>); | 96 void setDocumentResource(ResourcePtr<DocumentResource>); |
95 | 97 |
96 virtual Timer<SVGElement>* svgLoadEventTimer() override { return &m_svgLoadE
ventTimer; } | 98 virtual Timer<SVGElement>* svgLoadEventTimer() override { return &m_svgLoadE
ventTimer; } |
97 | 99 |
98 RefPtr<SVGAnimatedLength> m_x; | 100 RefPtrWillBeMember<SVGAnimatedLength> m_x; |
99 RefPtr<SVGAnimatedLength> m_y; | 101 RefPtrWillBeMember<SVGAnimatedLength> m_y; |
100 RefPtr<SVGAnimatedLength> m_width; | 102 RefPtrWillBeMember<SVGAnimatedLength> m_width; |
101 RefPtr<SVGAnimatedLength> m_height; | 103 RefPtrWillBeMember<SVGAnimatedLength> m_height; |
102 | 104 |
103 bool m_haveFiredLoadEvent; | 105 bool m_haveFiredLoadEvent; |
104 bool m_needsShadowTreeRecreation; | 106 bool m_needsShadowTreeRecreation; |
105 RefPtrWillBeMember<SVGElement> m_targetElementInstance; | 107 RefPtrWillBeMember<SVGElement> m_targetElementInstance; |
106 ResourcePtr<DocumentResource> m_resource; | 108 ResourcePtr<DocumentResource> m_resource; |
107 Timer<SVGElement> m_svgLoadEventTimer; | 109 Timer<SVGElement> m_svgLoadEventTimer; |
108 }; | 110 }; |
109 | 111 |
110 } // namespace blink | 112 } // namespace blink |
111 | 113 |
112 #endif // SVGUseElement_h | 114 #endif // SVGUseElement_h |
OLD | NEW |