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

Unified Diff: Source/core/svg/SVGPathByteStreamBuilder.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/SVGPathByteStreamBuilder.h
diff --git a/Source/core/svg/SVGPathByteStreamBuilder.h b/Source/core/svg/SVGPathByteStreamBuilder.h
index ae53bcc0904b470920e9a305860a115b9d4a8815..2b3eb09824c25c71154ebb6ff36ffe513c5d5c63 100644
--- a/Source/core/svg/SVGPathByteStreamBuilder.h
+++ b/Source/core/svg/SVGPathByteStreamBuilder.h
@@ -30,14 +30,11 @@ namespace blink {
class SVGPathByteStreamBuilder final : public SVGPathConsumer {
public:
- SVGPathByteStreamBuilder();
-
- void setCurrentByteStream(SVGPathByteStream* byteStream) { m_byteStream = byteStream; }
+ SVGPathByteStreamBuilder(SVGPathByteStream&);
private:
virtual void incrementPathSegmentCount() override { }
virtual bool continueConsuming() override { return true; }
- virtual void cleanup() override { m_byteStream = 0; }
// Used in UnalteredParsing/NormalizedParsing modes.
virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) override;
@@ -53,7 +50,7 @@ private:
virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) override;
virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, PathCoordinateMode) override;
- SVGPathByteStream* m_byteStream;
+ SVGPathByteStream& m_byteStream;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698