Index: Source/core/svg/SVGPathParser.cpp |
diff --git a/Source/core/svg/SVGPathParser.cpp b/Source/core/svg/SVGPathParser.cpp |
index cd9084accd1bd2924e846eaada2ebd48c3974625..22139dccbbc2bb1ed2a4f8a5cc64a66d2fae7e4f 100644 |
--- a/Source/core/svg/SVGPathParser.cpp |
+++ b/Source/core/svg/SVGPathParser.cpp |
@@ -33,10 +33,17 @@ static const float gOneOverThree = 1 / 3.f; |
namespace blink { |
SVGPathParser::SVGPathParser() |
- : m_consumer(0) |
+ : m_source(nullptr) |
+ , m_consumer(nullptr) |
{ |
} |
+void SVGPathParser::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_source); |
+ visitor->trace(m_consumer); |
+} |
+ |
void SVGPathParser::parseClosePathSegment() |
{ |
// Reset m_currentPoint for the next path. |
@@ -402,8 +409,8 @@ void SVGPathParser::cleanup() |
ASSERT(m_consumer); |
m_consumer->cleanup(); |
- m_source = 0; |
- m_consumer = 0; |
+ m_source = nullptr; |
+ m_consumer = nullptr; |
} |
// This works by converting the SVG arc to "simple" beziers. |