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, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 SVGAnimatedLength* x() const { return m_x.get(); } | 49 SVGAnimatedLength* x() const { return m_x.get(); } |
50 SVGAnimatedLength* y() const { return m_y.get(); } | 50 SVGAnimatedLength* y() const { return m_y.get(); } |
51 SVGAnimatedLength* width() const { return m_width.get(); } | 51 SVGAnimatedLength* width() const { return m_width.get(); } |
52 SVGAnimatedLength* height() const { return m_height.get(); } | 52 SVGAnimatedLength* height() const { return m_height.get(); } |
53 | 53 |
54 virtual void buildPendingResource() override; | 54 virtual void buildPendingResource() override; |
55 | 55 |
56 DECLARE_VIRTUAL_TRACE(); | 56 DECLARE_VIRTUAL_TRACE(); |
57 | 57 |
| 58 private: |
| 59 explicit SVGUseElement(Document&); |
| 60 |
58 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 61 virtual bool isPresentationAttribute(const QualifiedName&) const override; |
59 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 62 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; |
60 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o
verride; | 63 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o
verride; |
61 | 64 |
62 private: | |
63 explicit SVGUseElement(Document&); | |
64 | |
65 virtual bool isStructurallyExternal() const override { return !hrefString().
isNull() && isExternalURIReference(hrefString(), document()); } | 65 virtual bool isStructurallyExternal() const override { return !hrefString().
isNull() && isExternalURIReference(hrefString(), document()); } |
66 | 66 |
67 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 67 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
68 virtual void removedFrom(ContainerNode*) override; | 68 virtual void removedFrom(ContainerNode*) override; |
69 | 69 |
70 bool isSupportedAttribute(const QualifiedName&); | 70 bool isSupportedAttribute(const QualifiedName&); |
71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
72 virtual void svgAttributeChanged(const QualifiedName&) override; | 72 virtual void svgAttributeChanged(const QualifiedName&) override; |
73 | 73 |
74 virtual LayoutObject* createRenderer(const LayoutStyle&) override; | 74 virtual LayoutObject* createRenderer(const LayoutStyle&) override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 bool m_haveFiredLoadEvent; | 109 bool m_haveFiredLoadEvent; |
110 bool m_needsShadowTreeRecreation; | 110 bool m_needsShadowTreeRecreation; |
111 RefPtrWillBeMember<SVGElement> m_targetElementInstance; | 111 RefPtrWillBeMember<SVGElement> m_targetElementInstance; |
112 ResourcePtr<DocumentResource> m_resource; | 112 ResourcePtr<DocumentResource> m_resource; |
113 Timer<SVGElement> m_svgLoadEventTimer; | 113 Timer<SVGElement> m_svgLoadEventTimer; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // SVGUseElement_h | 118 #endif // SVGUseElement_h |
OLD | NEW |