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

Unified Diff: Source/core/svg/SVGPathBuilder.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/SVGPathBuilder.h
diff --git a/Source/core/svg/SVGPathBuilder.h b/Source/core/svg/SVGPathBuilder.h
index 3af213cc9980d6136673e8df5fc33751c8f68c69..535d579d7850d8f336691010b4f3c44475f4904e 100644
--- a/Source/core/svg/SVGPathBuilder.h
+++ b/Source/core/svg/SVGPathBuilder.h
@@ -33,14 +33,11 @@ class Path;
class SVGPathBuilder final : public SVGPathConsumer {
public:
- SVGPathBuilder();
-
- void setCurrentPath(Path* path) { m_path = path; }
+ SVGPathBuilder(Path& path) : m_path(path) { }
private:
virtual void incrementPathSegmentCount() override { }
virtual bool continueConsuming() override { return true; }
- virtual void cleanup() override { m_path = 0; }
// Used in UnalteredParsing/NormalizedParsing modes.
virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) override;
@@ -56,7 +53,7 @@ private:
virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) override { ASSERT_NOT_REACHED(); }
virtual void arcTo(float, float, float, bool, bool, const FloatPoint&, PathCoordinateMode) override { ASSERT_NOT_REACHED(); }
- Path* m_path;
+ Path& m_path;
FloatPoint m_current;
};

Powered by Google App Engine
This is Rietveld 408576698