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

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

Issue 2173453002: Resolve URL/target reference at a single point in SVGUseElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test touchups Created 4 years, 5 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
Index: third_party/WebKit/Source/core/svg/SVGUseElement.h
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.h b/third_party/WebKit/Source/core/svg/SVGUseElement.h
index e54a8b952dda1b9fd4291a7b4066c4a83cc2609c..26fe4b622f1cacbb5a0581aceecae82508aa4748 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.h
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.h
@@ -89,6 +89,7 @@ private:
bool selfHasRelativeLengths() const override;
// Instance tree handling
+ Element* resolveTargetElement();
void buildShadowAndInstanceTree(SVGElement& target);
void clearInstanceRoot();
Element* createInstanceTree(SVGElement& targetRoot) const;
@@ -102,10 +103,10 @@ private:
bool resourceIsStillLoading() const;
bool resourceIsValid() const;
- Document* externalDocument() const;
bool instanceTreeIsLoading() const;
void notifyFinished(Resource*) override;
String debugName() const override { return "SVGUseElement"; }
+ void updateTargetReference();
void setDocumentResource(DocumentResource*);
Member<SVGAnimatedLength> m_x;
@@ -113,6 +114,8 @@ private:
Member<SVGAnimatedLength> m_width;
Member<SVGAnimatedLength> m_height;
+ AtomicString m_elementIdentifier;
+ bool m_elementIdentifierIsLocal;
bool m_haveFiredLoadEvent;
bool m_needsShadowTreeRecreation;
Member<SVGElement> m_targetElementInstance;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGURIReference.cpp ('k') | third_party/WebKit/Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698