| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 break; | 210 break; |
| 211 case PathSegCurveToQuadraticRel: | 211 case PathSegCurveToQuadraticRel: |
| 212 case PathSegCurveToQuadraticAbs: | 212 case PathSegCurveToQuadraticAbs: |
| 213 segment.point1.setX(parseNumberWithError()); | 213 segment.point1.setX(parseNumberWithError()); |
| 214 segment.point1.setY(parseNumberWithError()); | 214 segment.point1.setY(parseNumberWithError()); |
| 215 segment.targetPoint.setX(parseNumberWithError()); | 215 segment.targetPoint.setX(parseNumberWithError()); |
| 216 segment.targetPoint.setY(parseNumberWithError()); | 216 segment.targetPoint.setY(parseNumberWithError()); |
| 217 break; | 217 break; |
| 218 case PathSegArcRel: | 218 case PathSegArcRel: |
| 219 case PathSegArcAbs: | 219 case PathSegArcAbs: |
| 220 segment.point1.setX(parseNumberWithError()); // rx | 220 segment.arcRadii().setX(parseNumberWithError()); |
| 221 segment.point1.setY(parseNumberWithError()); // ry | 221 segment.arcRadii().setY(parseNumberWithError()); |
| 222 segment.point2.setX(parseNumberWithError()); // angle | 222 segment.setArcAngle(parseNumberWithError()); |
| 223 segment.arcLarge = parseArcFlagWithError(); | 223 segment.arcLarge = parseArcFlagWithError(); |
| 224 segment.arcSweep = parseArcFlagWithError(); | 224 segment.arcSweep = parseArcFlagWithError(); |
| 225 segment.targetPoint.setX(parseNumberWithError()); | 225 segment.targetPoint.setX(parseNumberWithError()); |
| 226 segment.targetPoint.setY(parseNumberWithError()); | 226 segment.targetPoint.setY(parseNumberWithError()); |
| 227 break; | 227 break; |
| 228 case PathSegUnknown: | 228 case PathSegUnknown: |
| 229 ASSERT_NOT_REACHED(); | 229 ASSERT_NOT_REACHED(); |
| 230 } | 230 } |
| 231 | 231 |
| 232 if (UNLIKELY(m_seenError)) | 232 if (UNLIKELY(m_seenError)) |
| 233 segment.command = PathSegUnknown; | 233 segment.command = PathSegUnknown; |
| 234 return segment; | 234 return segment; |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace blink | 237 } // namespace blink |
| OLD | NEW |