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

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

Issue 1323443003: Don't transfer viewport to an invalid/dirty <use> instance (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Only clear the instance root. Created 5 years, 3 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 | « LayoutTests/svg/custom/use-target-removed-expected.txt ('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 647b59ee3952ae1d04e8bd95e2bcbc76cd8d5a1b..280bad76c26555f235e8a12530deeda9c0c2e646 100644
--- a/Source/core/svg/SVGUseElement.h
+++ b/Source/core/svg/SVGUseElement.h
@@ -76,16 +76,17 @@ private:
LayoutObject* createLayoutObject(const ComputedStyle&) override;
- void clearResourceReferences();
- void buildShadowAndInstanceTree(SVGElement* target);
-
void scheduleShadowTreeRecreation();
+ void cancelShadowTreeRecreation();
bool haveLoadedRequiredResources() override { return !isStructurallyExternal() || m_haveFiredLoadEvent; }
bool selfHasRelativeLengths() const override;
// Instance tree handling
+ void buildShadowAndInstanceTree(SVGElement* target);
+ void clearInstanceRoot();
bool buildShadowTree(SVGElement* target, SVGElement* targetInstance, bool foundUse);
+ void clearShadowTree();
bool hasCycleUseReferencing(SVGUseElement*, ContainerNode* targetInstance, SVGElement*& newTarget);
bool expandUseElementsInShadowTree(SVGElement*);
void expandSymbolElementsInShadowTree(SVGElement*);
« no previous file with comments | « LayoutTests/svg/custom/use-target-removed-expected.txt ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698