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

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

Issue 734053005: Remove globalSVGPath* from SVGPathUtilities.cpp (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/svg/SVGPathParser.h
diff --git a/Source/core/svg/SVGPathParser.h b/Source/core/svg/SVGPathParser.h
index 0d2b59310597849e51e5fc85f6139ec237b31039..e5c44d3aba63941b695370c7b24b4a1d2e19ba08 100644
--- a/Source/core/svg/SVGPathParser.h
+++ b/Source/core/svg/SVGPathParser.h
@@ -37,12 +37,15 @@ class SVGPathSource;
class SVGPathParser final : public NoBaseWillBeGarbageCollected<SVGPathParser> {
WTF_MAKE_NONCOPYABLE(SVGPathParser); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- SVGPathParser();
+ SVGPathParser(SVGPathSource* source, SVGPathConsumer* consumer)
+ : m_source(source)
+ , m_consumer(consumer)
+ {
+ ASSERT(m_source);
+ ASSERT(m_consumer);
+ }
bool parsePathDataFromSource(PathParsingMode, bool checkForInitialMoveTo = true);
- void setCurrentConsumer(SVGPathConsumer* consumer) { m_consumer = consumer; }
- void setCurrentSource(SVGPathSource* source) { m_source = source; }
- void cleanup();
void trace(Visitor*);

Powered by Google App Engine
This is Rietveld 408576698