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

Side by Side Diff: Source/core/svg/SVGPathSegListBuilder.h

Issue 1016023002: Move 'closePath' handling to the consumers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: closePath() Created 5 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPathParser.cpp ('k') | Source/core/svg/SVGPathSegListBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2002, 2003 The Karbon Developers 2 * Copyright (C) 2002, 2003 The Karbon Developers
3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 26 matching lines...) Expand all
37 public: 37 public:
38 SVGPathSegListBuilder(SVGPathElement*, PassRefPtrWillBeRawPtr<SVGPathSegList >); 38 SVGPathSegListBuilder(SVGPathElement*, PassRefPtrWillBeRawPtr<SVGPathSegList >);
39 39
40 DECLARE_VIRTUAL_TRACE(); 40 DECLARE_VIRTUAL_TRACE();
41 41
42 private: 42 private:
43 virtual void incrementPathSegmentCount() override { } 43 virtual void incrementPathSegmentCount() override { }
44 virtual bool continueConsuming() override { return true; } 44 virtual bool continueConsuming() override { return true; }
45 45
46 // Used in UnalteredParsing/NormalizedParsing modes. 46 // Used in UnalteredParsing/NormalizedParsing modes.
47 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) over ride; 47 virtual void moveTo(const FloatPoint&, PathCoordinateMode) override;
48 virtual void lineTo(const FloatPoint&, PathCoordinateMode) override; 48 virtual void lineTo(const FloatPoint&, PathCoordinateMode) override;
49 virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatP oint&, PathCoordinateMode) override; 49 virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatP oint&, PathCoordinateMode) override;
50 virtual void closePath() override; 50 virtual void closePath() override;
51 51
52 // Only used in UnalteredParsing mode. 52 // Only used in UnalteredParsing mode.
53 virtual void lineToHorizontal(float, PathCoordinateMode) override; 53 virtual void lineToHorizontal(float, PathCoordinateMode) override;
54 virtual void lineToVertical(float, PathCoordinateMode) override; 54 virtual void lineToVertical(float, PathCoordinateMode) override;
55 virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCo ordinateMode) override; 55 virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCo ordinateMode) override;
56 virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoor dinateMode) override; 56 virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoor dinateMode) override;
57 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) o verride; 57 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) o verride;
58 virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, c onst FloatPoint&, PathCoordinateMode) override; 58 virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, c onst FloatPoint&, PathCoordinateMode) override;
59 59
60 RawPtrWillBeMember<SVGPathElement> m_pathElement; 60 RawPtrWillBeMember<SVGPathElement> m_pathElement;
61 RefPtrWillBeMember<SVGPathSegList> m_pathSegList; 61 RefPtrWillBeMember<SVGPathSegList> m_pathSegList;
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // SVGPathSegListBuilder_h 66 #endif // SVGPathSegListBuilder_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathParser.cpp ('k') | Source/core/svg/SVGPathSegListBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698