OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google, Inc. | 2 * Copyright (C) 2012 Google, Inc. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
18 */ | 18 */ |
19 | 19 |
20 #ifndef SVGSubpathData_h | 20 #ifndef SVGSubpathData_h |
21 #define SVGSubpathData_h | 21 #define SVGSubpathData_h |
22 | 22 |
23 #include "platform/graphics/Path.h" | 23 #include "platform/graphics/Path.h" |
| 24 #include "wtf/Allocator.h" |
24 #include "wtf/Vector.h" | 25 #include "wtf/Vector.h" |
25 | 26 |
26 namespace blink { | 27 namespace blink { |
27 | 28 |
28 class SVGSubpathData { | 29 class SVGSubpathData { |
| 30 STACK_ALLOCATED(); |
29 public: | 31 public: |
30 SVGSubpathData(Vector<FloatPoint>& zeroLengthSubpathLocations) | 32 SVGSubpathData(Vector<FloatPoint>& zeroLengthSubpathLocations) |
31 : m_zeroLengthSubpathLocations(zeroLengthSubpathLocations) | 33 : m_zeroLengthSubpathLocations(zeroLengthSubpathLocations) |
32 , m_haveSeenMoveOnly(true) | 34 , m_haveSeenMoveOnly(true) |
33 , m_pathIsZeroLength(true) | 35 , m_pathIsZeroLength(true) |
34 { | 36 { |
35 m_lastPoint.set(0, 0); | 37 m_lastPoint.set(0, 0); |
36 m_movePoint.set(0, 0); | 38 m_movePoint.set(0, 0); |
37 } | 39 } |
38 | 40 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 Vector<FloatPoint>& m_zeroLengthSubpathLocations; | 90 Vector<FloatPoint>& m_zeroLengthSubpathLocations; |
89 FloatPoint m_lastPoint; | 91 FloatPoint m_lastPoint; |
90 FloatPoint m_movePoint; | 92 FloatPoint m_movePoint; |
91 bool m_haveSeenMoveOnly; | 93 bool m_haveSeenMoveOnly; |
92 bool m_pathIsZeroLength; | 94 bool m_pathIsZeroLength; |
93 }; | 95 }; |
94 | 96 |
95 } | 97 } |
96 | 98 |
97 #endif // SVGSubpathData_h | 99 #endif // SVGSubpathData_h |
OLD | NEW |