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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp

Issue 2484153003: Use an SVGElementProxy in ReferenceClipPathOperation (Closed)
Patch Set: Rebase; fix comments; findElement Created 4 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: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
index d04a206033fbc74441488f6710fba627d014fbe0..5f14b8057441bc4f589b59f368d2b942fda03997 100644
--- a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
@@ -8,6 +8,7 @@
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/Document.h"
#include "core/svg/SVGCursorElement.h"
+#include "core/svg/SVGElementProxy.h"
namespace blink {
@@ -42,6 +43,7 @@ ComputedStyle* SVGElementRareData::overrideComputedStyle(
DEFINE_TRACE(SVGElementRareData) {
visitor->trace(m_outgoingReferences);
visitor->trace(m_incomingReferences);
+ visitor->trace(m_elementProxySet);
visitor->trace(m_animatedSMILStyleProperties);
visitor->trace(m_elementInstances);
visitor->trace(m_correspondingElement);
@@ -73,4 +75,10 @@ AffineTransform* SVGElementRareData::animateMotionTransform() {
return &m_animateMotionTransform;
}
+SVGElementProxySet& SVGElementRareData::ensureElementProxySet() {
+ if (!m_elementProxySet)
+ m_elementProxySet = new SVGElementProxySet;
+ return *m_elementProxySet;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElementRareData.h ('k') | third_party/WebKit/Source/core/svg/SVGFilterElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698