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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual ~SVGUseElement(); | 43 virtual ~SVGUseElement(); |
44 | 44 |
45 SVGElementInstance* instanceRoot(); | 45 SVGElementInstance* instanceRoot(); |
46 SVGElementInstance* animatedInstanceRoot() const; | 46 SVGElementInstance* animatedInstanceRoot() const; |
47 SVGElementInstance* instanceForShadowTreeElement(Node*) const; | 47 SVGElementInstance* instanceForShadowTreeElement(Node*) const; |
48 void invalidateShadowTree(); | 48 void invalidateShadowTree(); |
49 void invalidateDependentShadowTrees(); | 49 void invalidateDependentShadowTrees(); |
50 | 50 |
51 RenderObject* rendererClipChild() const; | 51 RenderObject* rendererClipChild() const; |
52 | 52 |
| 53 SVGAnimatedLength* x() const { return m_x.get(); } |
| 54 SVGAnimatedLength* y() const { return m_y.get(); } |
| 55 SVGAnimatedLength* width() const { return m_width.get(); } |
| 56 SVGAnimatedLength* height() const { return m_height.get(); } |
| 57 |
53 private: | 58 private: |
54 SVGUseElement(Document&, bool wasInsertedByParser); | 59 SVGUseElement(Document&, bool wasInsertedByParser); |
55 | 60 |
56 virtual bool isValid() const { return SVGTests::isValid(); } | 61 virtual bool isValid() const { return SVGTests::isValid(); } |
57 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } | 62 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
58 | 63 |
59 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 64 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
60 virtual void removedFrom(ContainerNode*) OVERRIDE; | 65 virtual void removedFrom(ContainerNode*) OVERRIDE; |
61 virtual void buildPendingResource(); | 66 virtual void buildPendingResource(); |
62 | 67 |
(...skipping 26 matching lines...) Expand all Loading... |
89 void expandUseElementsInShadowTree(Node* element); | 94 void expandUseElementsInShadowTree(Node* element); |
90 void expandSymbolElementsInShadowTree(Node* element); | 95 void expandSymbolElementsInShadowTree(Node* element); |
91 | 96 |
92 // "Tree connector" | 97 // "Tree connector" |
93 void associateInstancesWithShadowTreeElements(Node* target, SVGElementInstan
ce* targetInstance); | 98 void associateInstancesWithShadowTreeElements(Node* target, SVGElementInstan
ce* targetInstance); |
94 SVGElementInstance* instanceForShadowTreeElement(Node* element, SVGElementIn
stance* instance) const; | 99 SVGElementInstance* instanceForShadowTreeElement(Node* element, SVGElementIn
stance* instance) const; |
95 | 100 |
96 void transferUseAttributesToReplacedElement(SVGElement* from, SVGElement* to
) const; | 101 void transferUseAttributesToReplacedElement(SVGElement* from, SVGElement* to
) const; |
97 void transferEventListenersToShadowTree(SVGElementInstance* target); | 102 void transferEventListenersToShadowTree(SVGElementInstance* target); |
98 | 103 |
| 104 RefPtr<SVGAnimatedLength> m_x; |
| 105 RefPtr<SVGAnimatedLength> m_y; |
| 106 RefPtr<SVGAnimatedLength> m_width; |
| 107 RefPtr<SVGAnimatedLength> m_height; |
99 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGUseElement) | 108 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGUseElement) |
100 DECLARE_ANIMATED_LENGTH(X, x) | |
101 DECLARE_ANIMATED_LENGTH(Y, y) | |
102 DECLARE_ANIMATED_LENGTH(Width, width) | |
103 DECLARE_ANIMATED_LENGTH(Height, height) | |
104 DECLARE_ANIMATED_STRING(Href, href) | 109 DECLARE_ANIMATED_STRING(Href, href) |
105 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 110 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
106 END_DECLARE_ANIMATED_PROPERTIES | 111 END_DECLARE_ANIMATED_PROPERTIES |
107 | 112 |
108 bool resourceIsStillLoading(); | 113 bool resourceIsStillLoading(); |
109 Document* externalDocument() const; | 114 Document* externalDocument() const; |
110 bool instanceTreeIsLoading(SVGElementInstance*); | 115 bool instanceTreeIsLoading(SVGElementInstance*); |
111 virtual void notifyFinished(Resource*); | 116 virtual void notifyFinished(Resource*); |
112 Document* referencedDocument() const; | 117 Document* referencedDocument() const; |
113 void setDocumentResource(ResourcePtr<DocumentResource>); | 118 void setDocumentResource(ResourcePtr<DocumentResource>); |
(...skipping 10 matching lines...) Expand all Loading... |
124 RefPtr<SVGElementInstance> m_targetElementInstance; | 129 RefPtr<SVGElementInstance> m_targetElementInstance; |
125 ResourcePtr<DocumentResource> m_resource; | 130 ResourcePtr<DocumentResource> m_resource; |
126 Timer<SVGElement> m_svgLoadEventTimer; | 131 Timer<SVGElement> m_svgLoadEventTimer; |
127 }; | 132 }; |
128 | 133 |
129 DEFINE_NODE_TYPE_CASTS(SVGUseElement, hasTagName(SVGNames::useTag)); | 134 DEFINE_NODE_TYPE_CASTS(SVGUseElement, hasTagName(SVGNames::useTag)); |
130 | 135 |
131 } | 136 } |
132 | 137 |
133 #endif | 138 #endif |
OLD | NEW |