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

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

Issue 64683006: [svg] TearOffs dynamically hold on to the current contextElement(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: gchack Created 7 years, 1 month 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: Source/core/svg/SVGElement.h
diff --git a/Source/core/svg/SVGElement.h b/Source/core/svg/SVGElement.h
index 01026b14651f18a40170df0c8d997931906a496b..f401221e664a1d3bf44d89c23baeb434a70a0008 100644
--- a/Source/core/svg/SVGElement.h
+++ b/Source/core/svg/SVGElement.h
@@ -139,6 +139,9 @@ public:
void invalidateRelativeLengthClients(SubtreeLayoutScope* = 0);
+ bool isContextElement() const { return m_isContextElement; }
+ void setContextElement() { m_isContextElement = true; }
+
protected:
SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElement);
@@ -217,6 +220,7 @@ private:
bool m_inRelativeLengthClientsInvalidation;
#endif
bool m_animatedPropertiesDestructed;
+ bool m_isContextElement;
};
struct SVGAttributeHashTranslator {

Powered by Google App Engine
This is Rietveld 408576698