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

Unified Diff: Source/core/svg/SVGPathParser.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/SVGPathParser.h ('k') | Source/core/svg/SVGPathSeg.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/core/svg/SVGPathParser.h ('k') | Source/core/svg/SVGPathSeg.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698