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

Unified Diff: Source/core/svg/SVGUseElement.h

Issue 272523002: Remove SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address esprehns nits Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGElementRareData.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGUseElement.h
diff --git a/Source/core/svg/SVGUseElement.h b/Source/core/svg/SVGUseElement.h
index bcab8db031749869d5ad2a32deeae42f52dad2bf..9e538eb681963bbc1eb85369b55bf4f4d899133a 100644
--- a/Source/core/svg/SVGUseElement.h
+++ b/Source/core/svg/SVGUseElement.h
@@ -31,7 +31,6 @@
namespace WebCore {
class DocumentResource;
-class SVGElementInstance;
class SVGUseElement FINAL : public SVGGraphicsElement,
public SVGURIReference,
@@ -40,10 +39,7 @@ public:
static PassRefPtrWillBeRawPtr<SVGUseElement> create(Document&);
virtual ~SVGUseElement();
- SVGElementInstance* instanceRoot();
- SVGElementInstance* animatedInstanceRoot() const;
void invalidateShadowTree();
- void invalidateDependentShadowTrees();
RenderObject* rendererClipChild() const;
@@ -80,38 +76,32 @@ private:
virtual bool selfHasRelativeLengths() const OVERRIDE;
// Instance tree handling
- void buildInstanceTree(SVGElement* target, SVGElementInstance* targetInstance, bool& foundCycle, bool foundUse);
- bool hasCycleUseReferencing(SVGUseElement*, SVGElementInstance* targetInstance, SVGElement*& newTarget);
-
- // Shadow tree handling
- void buildShadowTree(SVGElement* target, SVGElementInstance* targetInstance, ShadowRoot* shadowTreeRootElement);
-
- void expandUseElementsInShadowTree(Node* element);
- void expandSymbolElementsInShadowTree(Node* element);
-
- // "Tree connector"
- void associateInstancesWithShadowTreeElements(Node* target, SVGElementInstance* targetInstance);
+ bool buildShadowTree(SVGElement* target, SVGElement* targetInstance, bool foundUse);
+ bool hasCycleUseReferencing(SVGUseElement*, ContainerNode* targetInstance, SVGElement*& newTarget);
+ bool expandUseElementsInShadowTree(SVGElement*);
+ void expandSymbolElementsInShadowTree(SVGElement*);
void transferUseAttributesToReplacedElement(SVGElement* from, SVGElement* to) const;
- void transferEventListenersToShadowTree(SVGElement* shadowTreeTargetElement);
- RefPtr<SVGAnimatedLength> m_x;
- RefPtr<SVGAnimatedLength> m_y;
- RefPtr<SVGAnimatedLength> m_width;
- RefPtr<SVGAnimatedLength> m_height;
+ void invalidateDependentShadowTrees();
bool resourceIsStillLoading();
Document* externalDocument() const;
- bool instanceTreeIsLoading(SVGElementInstance*);
+ bool instanceTreeIsLoading(SVGElement*);
virtual void notifyFinished(Resource*) OVERRIDE;
TreeScope* referencedScope() const;
void setDocumentResource(ResourcePtr<DocumentResource>);
virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadEventTimer; }
+ RefPtr<SVGAnimatedLength> m_x;
+ RefPtr<SVGAnimatedLength> m_y;
+ RefPtr<SVGAnimatedLength> m_width;
+ RefPtr<SVGAnimatedLength> m_height;
+
bool m_haveFiredLoadEvent;
bool m_needsShadowTreeRecreation;
- RefPtrWillBeMember<SVGElementInstance> m_targetElementInstance;
+ RefPtrWillBeMember<SVGElement> m_targetElementInstance;
ResourcePtr<DocumentResource> m_resource;
Timer<SVGElement> m_svgLoadEventTimer;
};
« no previous file with comments | « Source/core/svg/SVGElementRareData.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698