| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2012. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2012. 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 template<typename CharType> | 86 template<typename CharType> |
| 87 int parseTransformParamList(const CharType*& ptr, const CharType* end, float* va
lues, int required, int optional) | 87 int parseTransformParamList(const CharType*& ptr, const CharType* end, float* va
lues, int required, int optional) |
| 88 { | 88 { |
| 89 int parsedParams = 0; | 89 int parsedParams = 0; |
| 90 int maxPossibleParams = required + optional; | 90 int maxPossibleParams = required + optional; |
| 91 | 91 |
| 92 bool trailingDelimiter = false; | 92 bool trailingDelimiter = false; |
| 93 | 93 |
| 94 skipOptionalSVGSpaces(ptr, end); | 94 skipOptionalSVGSpaces(ptr, end); |
| 95 while (parsedParams < maxPossibleParams) { | 95 while (parsedParams < maxPossibleParams) { |
| 96 if (!parseNumber(ptr, end, values[parsedParams], DisallowWhitespace)) | 96 if (!parseNumber(ptr, end, values[parsedParams], false)) |
| 97 break; | 97 break; |
| 98 | 98 |
| 99 ++parsedParams; | 99 ++parsedParams; |
| 100 | 100 |
| 101 if (skipOptionalSVGSpaces(ptr, end) && *ptr == ',') { | 101 if (skipOptionalSVGSpaces(ptr, end) && *ptr == ',') { |
| 102 ++ptr; | 102 ++ptr; |
| 103 skipOptionalSVGSpaces(ptr, end); | 103 skipOptionalSVGSpaces(ptr, end); |
| 104 | 104 |
| 105 trailingDelimiter = true; | 105 trailingDelimiter = true; |
| 106 } else { | 106 } else { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 if (at(0)->transformType() == toList->at(0)->transformType()) | 347 if (at(0)->transformType() == toList->at(0)->transformType()) |
| 348 return -1; | 348 return -1; |
| 349 | 349 |
| 350 // Spec: http://www.w3.org/TR/SVG/animate.html#complexDistances | 350 // Spec: http://www.w3.org/TR/SVG/animate.html#complexDistances |
| 351 // Paced animations assume a notion of distance between the various animatio
n values defined by the ‘to’, ‘from’, ‘by’ and ‘values’ attributes. | 351 // Paced animations assume a notion of distance between the various animatio
n values defined by the ‘to’, ‘from’, ‘by’ and ‘values’ attributes. |
| 352 // Distance is defined only for scalar types (such as <length>), colors and
the subset of transformation types that are supported by ‘animateTransform’. | 352 // Distance is defined only for scalar types (such as <length>), colors and
the subset of transformation types that are supported by ‘animateTransform’. |
| 353 return SVGTransformDistance(at(0), toList->at(0)).distance(); | 353 return SVGTransformDistance(at(0), toList->at(0)).distance(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 } | 356 } |
| OLD | NEW |