OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006, 2007 Eric Seidel <eric@webkit.org> |
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 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 PathTraversalState::TraversalPointAtLength || | 150 PathTraversalState::TraversalPointAtLength || |
151 traversalState.m_action == | 151 traversalState.m_action == |
152 PathTraversalState::TraversalNormalAngleAtLength) { | 152 PathTraversalState::TraversalNormalAngleAtLength) { |
153 traversalState.m_previous = curve.start; | 153 traversalState.m_previous = curve.start; |
154 traversalState.m_current = curve.end; | 154 traversalState.m_current = curve.end; |
155 if (traversalState.m_totalLength + totalLength > | 155 if (traversalState.m_totalLength + totalLength > |
156 traversalState.m_desiredLength) | 156 traversalState.m_desiredLength) |
157 return totalLength; | 157 return totalLength; |
158 } | 158 } |
159 curve = curveStack.last(); | 159 curve = curveStack.last(); |
160 curveStack.removeLast(); | 160 curveStack.pop_back(); |
161 } | 161 } |
162 } while (!curveStack.isEmpty()); | 162 } while (!curveStack.isEmpty()); |
163 | 163 |
164 return totalLength; | 164 return totalLength; |
165 } | 165 } |
166 | 166 |
167 PathTraversalState::PathTraversalState(PathTraversalAction action) | 167 PathTraversalState::PathTraversalState(PathTraversalAction action) |
168 : m_action(action), | 168 : m_action(action), |
169 m_success(false), | 169 m_success(false), |
170 m_totalLength(0), | 170 m_totalLength(0), |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 m_current.move(offset * cosf(slope), offset * sinf(slope)); | 214 m_current.move(offset * cosf(slope), offset * sinf(slope)); |
215 } else { | 215 } else { |
216 m_normalAngle = rad2deg(slope); | 216 m_normalAngle = rad2deg(slope); |
217 } | 217 } |
218 m_success = true; | 218 m_success = true; |
219 } | 219 } |
220 m_previous = m_current; | 220 m_previous = m_current; |
221 } | 221 } |
222 | 222 |
223 } // namespace blink | 223 } // namespace blink |
OLD | NEW |