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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual bool haveLoadedRequiredResources() OVERRIDE { return !isStructurally
External() || m_haveFiredLoadEvent; } | 77 virtual bool haveLoadedRequiredResources() OVERRIDE { return !isStructurally
External() || m_haveFiredLoadEvent; } |
78 | 78 |
79 virtual void finishParsingChildren() OVERRIDE; | 79 virtual void finishParsingChildren() OVERRIDE; |
80 virtual bool selfHasRelativeLengths() const OVERRIDE; | 80 virtual bool selfHasRelativeLengths() const OVERRIDE; |
81 | 81 |
82 // Instance tree handling | 82 // Instance tree handling |
83 void buildInstanceTree(SVGElement* target, SVGElementInstance* targetInstanc
e, bool& foundCycle, bool foundUse); | 83 void buildInstanceTree(SVGElement* target, SVGElementInstance* targetInstanc
e, bool& foundCycle, bool foundUse); |
84 bool hasCycleUseReferencing(SVGUseElement*, SVGElementInstance* targetInstan
ce, SVGElement*& newTarget); | 84 bool hasCycleUseReferencing(SVGUseElement*, SVGElementInstance* targetInstan
ce, SVGElement*& newTarget); |
85 | 85 |
86 // Shadow tree handling | 86 // Shadow tree handling |
87 void buildShadowTree(SVGElement* target, SVGElementInstance* targetInstance)
; | 87 void buildShadowTree(SVGElement* target, SVGElementInstance* targetInstance,
ShadowRoot* shadowTreeRootElement); |
88 | 88 |
89 void expandUseElementsInShadowTree(Node* element); | 89 void expandUseElementsInShadowTree(Node* element); |
90 void expandSymbolElementsInShadowTree(Node* element); | 90 void expandSymbolElementsInShadowTree(Node* element); |
91 | 91 |
92 // "Tree connector" | 92 // "Tree connector" |
93 void associateInstancesWithShadowTreeElements(Node* target, SVGElementInstan
ce* targetInstance); | 93 void associateInstancesWithShadowTreeElements(Node* target, SVGElementInstan
ce* targetInstance); |
94 SVGElementInstance* instanceForShadowTreeElement(Node* element, SVGElementIn
stance* instance) const; | 94 SVGElementInstance* instanceForShadowTreeElement(Node* element, SVGElementIn
stance* instance) const; |
95 | 95 |
96 void transferUseAttributesToReplacedElement(SVGElement* from, SVGElement* to
) const; | 96 void transferUseAttributesToReplacedElement(SVGElement* from, SVGElement* to
) const; |
97 void transferEventListenersToShadowTree(SVGElementInstance* target); | 97 void transferEventListenersToShadowTree(SVGElement* shadowTreeTargetElement)
; |
98 | 98 |
99 RefPtr<SVGAnimatedLength> m_x; | 99 RefPtr<SVGAnimatedLength> m_x; |
100 RefPtr<SVGAnimatedLength> m_y; | 100 RefPtr<SVGAnimatedLength> m_y; |
101 RefPtr<SVGAnimatedLength> m_width; | 101 RefPtr<SVGAnimatedLength> m_width; |
102 RefPtr<SVGAnimatedLength> m_height; | 102 RefPtr<SVGAnimatedLength> m_height; |
103 | 103 |
104 bool resourceIsStillLoading(); | 104 bool resourceIsStillLoading(); |
105 Document* externalDocument() const; | 105 Document* externalDocument() const; |
106 bool instanceTreeIsLoading(SVGElementInstance*); | 106 bool instanceTreeIsLoading(SVGElementInstance*); |
107 virtual void notifyFinished(Resource*) OVERRIDE; | 107 virtual void notifyFinished(Resource*) OVERRIDE; |
108 TreeScope* referencedScope() const; | 108 TreeScope* referencedScope() const; |
109 void setDocumentResource(ResourcePtr<DocumentResource>); | 109 void setDocumentResource(ResourcePtr<DocumentResource>); |
110 | 110 |
111 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } | 111 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } |
112 | 112 |
113 bool m_wasInsertedByParser; | 113 bool m_wasInsertedByParser; |
114 bool m_haveFiredLoadEvent; | 114 bool m_haveFiredLoadEvent; |
115 bool m_needsShadowTreeRecreation; | 115 bool m_needsShadowTreeRecreation; |
116 RefPtr<SVGElementInstance> m_targetElementInstance; | 116 RefPtr<SVGElementInstance> m_targetElementInstance; |
117 ResourcePtr<DocumentResource> m_resource; | 117 ResourcePtr<DocumentResource> m_resource; |
118 Timer<SVGElement> m_svgLoadEventTimer; | 118 Timer<SVGElement> m_svgLoadEventTimer; |
119 }; | 119 }; |
120 | 120 |
121 } | 121 } |
122 | 122 |
123 #endif | 123 #endif |
OLD | NEW |