Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: Source/core/svg/SVGUseElement.h

Issue 269843002: Use m_targetElementInstance in fewer places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compile error in debug Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698