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

Unified Diff: Source/core/svg/SVGPathBlender.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 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
« no previous file with comments | « Source/core/svg/SVGPathBlender.h ('k') | Source/core/svg/SVGPathConsumer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathBlender.cpp
diff --git a/Source/core/svg/SVGPathBlender.cpp b/Source/core/svg/SVGPathBlender.cpp
index a3a026b6162acff975caab3e27dfc2246ea62b98..8a9d13fb9ee7caacdfd00ea51d2bdb66d27adf53 100644
--- a/Source/core/svg/SVGPathBlender.cpp
+++ b/Source/core/svg/SVGPathBlender.cpp
@@ -28,15 +28,22 @@
namespace blink {
SVGPathBlender::SVGPathBlender()
- : m_fromSource(0)
- , m_toSource(0)
- , m_consumer(0)
+ : m_fromSource(nullptr)
+ , m_toSource(nullptr)
+ , m_consumer(nullptr)
, m_progress(0)
, m_addTypesCount(0)
, m_isInFirstHalfOfAnimation(false)
{
}
+void SVGPathBlender::trace(Visitor* visitor)
+{
+ visitor->trace(m_fromSource);
+ visitor->trace(m_toSource);
+ visitor->trace(m_consumer);
+}
+
// Helper functions
static inline FloatPoint blendFloatPoint(const FloatPoint& a, const FloatPoint& b, float progress)
{
@@ -399,9 +406,9 @@ void SVGPathBlender::cleanup()
ASSERT(m_consumer);
m_consumer->cleanup();
- m_toSource = 0;
- m_fromSource = 0;
- m_consumer = 0;
+ m_toSource = nullptr;
+ m_fromSource = nullptr;
+ m_consumer = nullptr;
m_fromCurrentPoint = FloatPoint();
m_toCurrentPoint = FloatPoint();
}
« no previous file with comments | « Source/core/svg/SVGPathBlender.h ('k') | Source/core/svg/SVGPathConsumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698