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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 initialCommandIsMoveTo(); | 51 bool initialCommandIsMoveTo(); |
52 bool decomposeArcToCubic(const FloatPoint& currentPoint, const PathSegmentDa
ta&); | |
53 void emitMoveToSegment(PathSegmentData&); | |
54 void emitLineToSegment(PathSegmentData&); | |
55 void emitLineToHorizontalSegment(PathSegmentData&); | |
56 void emitLineToVerticalSegment(PathSegmentData&); | |
57 void emitCurveToCubicSegment(PathSegmentData&); | |
58 void emitCurveToCubicSmoothSegment(PathSegmentData&); | |
59 void emitCurveToQuadraticSegment(PathSegmentData&); | |
60 void emitCurveToQuadraticSmoothSegment(PathSegmentData&); | |
61 void emitArcToSegment(PathSegmentData&); | |
62 | 52 |
63 RawPtrWillBeMember<SVGPathSource> m_source; | 53 RawPtrWillBeMember<SVGPathSource> m_source; |
64 RawPtrWillBeMember<SVGPathConsumer> m_consumer; | 54 RawPtrWillBeMember<SVGPathConsumer> m_consumer; |
65 PathCoordinateMode m_mode; | |
66 SVGPathSegType m_lastCommand; | |
67 FloatPoint m_controlPoint; | |
68 FloatPoint m_currentPoint; | |
69 FloatPoint m_subPathPoint; | |
70 }; | 55 }; |
71 | 56 |
72 } // namespace blink | 57 } // namespace blink |
73 | 58 |
74 #endif // SVGPathParser_h | 59 #endif // SVGPathParser_h |
OLD | NEW |