OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 { | 41 { |
42 ASSERT(m_source); | 42 ASSERT(m_source); |
43 ASSERT(m_consumer); | 43 ASSERT(m_consumer); |
44 } | 44 } |
45 | 45 |
46 bool parsePathDataFromSource(PathParsingMode, bool checkForInitialMoveTo = t
rue); | 46 bool parsePathDataFromSource(PathParsingMode, bool checkForInitialMoveTo = t
rue); |
47 | 47 |
48 DECLARE_TRACE(); | 48 DECLARE_TRACE(); |
49 | 49 |
50 private: | 50 private: |
51 bool decomposeArcToCubic(float, float, float, FloatPoint&, FloatPoint&, bool
largeArcFlag, bool sweepFlag); | 51 bool decomposeArcToCubic(float, float, float, const FloatPoint&, const Float
Point&, bool largeArcFlag, bool sweepFlag); |
52 void parseClosePathSegment(); | 52 void parseClosePathSegment(); |
53 bool parseMoveToSegment(); | 53 bool parseMoveToSegment(); |
54 bool parseLineToSegment(); | 54 bool parseLineToSegment(); |
55 bool parseLineToHorizontalSegment(); | 55 bool parseLineToHorizontalSegment(); |
56 bool parseLineToVerticalSegment(); | 56 bool parseLineToVerticalSegment(); |
57 bool parseCurveToCubicSegment(); | 57 bool parseCurveToCubicSegment(); |
58 bool parseCurveToCubicSmoothSegment(); | 58 bool parseCurveToCubicSmoothSegment(); |
59 bool parseCurveToQuadraticSegment(); | 59 bool parseCurveToQuadraticSegment(); |
60 bool parseCurveToQuadraticSmoothSegment(); | 60 bool parseCurveToQuadraticSmoothSegment(); |
61 bool parseArcToSegment(); | 61 bool parseArcToSegment(); |
62 | 62 |
63 RawPtrWillBeMember<SVGPathSource> m_source; | 63 RawPtrWillBeMember<SVGPathSource> m_source; |
64 RawPtrWillBeMember<SVGPathConsumer> m_consumer; | 64 RawPtrWillBeMember<SVGPathConsumer> m_consumer; |
65 PathCoordinateMode m_mode; | 65 PathCoordinateMode m_mode; |
66 PathParsingMode m_pathParsingMode; | 66 PathParsingMode m_pathParsingMode; |
67 SVGPathSegType m_lastCommand; | 67 SVGPathSegType m_lastCommand; |
68 bool m_closePath; | 68 bool m_closePath; |
69 FloatPoint m_controlPoint; | 69 FloatPoint m_controlPoint; |
70 FloatPoint m_currentPoint; | 70 FloatPoint m_currentPoint; |
71 FloatPoint m_subPathPoint; | 71 FloatPoint m_subPathPoint; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif // SVGPathParser_h | 76 #endif // SVGPathParser_h |
OLD | NEW |