Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 skipOptionalSVGSpaces(ptr, end); | 98 skipOptionalSVGSpaces(ptr, end); |
| 99 if (ptr < end && *ptr == ',') { | 99 if (ptr < end && *ptr == ',') { |
| 100 ++ptr; | 100 ++ptr; |
| 101 skipOptionalSVGSpaces(ptr, end); | 101 skipOptionalSVGSpaces(ptr, end); |
| 102 | 102 |
| 103 // ',' requires the list to be continued | 103 // ',' requires the list to be continued |
| 104 continue; | 104 continue; |
| 105 } | 105 } |
| 106 | 106 |
| 107 // check end of list | 107 // check end of list |
| 108 skipOptionalSVGSpaces(ptr, end); | |
|
haraken
2014/02/11 17:00:21
Why did you remove this?
kouhei (in TOK)
2014/02/12 01:57:49
This was redundant. There is a call already in lin
| |
| 109 if (ptr >= end) | 108 if (ptr >= end) |
| 110 return true; | 109 return true; |
| 111 } | 110 } |
| 112 } | 111 } |
| 113 | 112 |
| 114 void SVGPointList::setValueAsString(const String& value, ExceptionState& excepti onState) | 113 void SVGPointList::setValueAsString(const String& value, ExceptionState& excepti onState) |
| 115 { | 114 { |
| 116 if (value.isEmpty()) { | 115 if (value.isEmpty()) { |
| 117 clear(); | 116 clear(); |
| 118 return; | 117 return; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 208 } | 207 } |
| 209 } | 208 } |
| 210 | 209 |
| 211 float SVGPointList::calculateDistance(PassRefPtr<NewSVGPropertyBase> to, SVGElem ent*) | 210 float SVGPointList::calculateDistance(PassRefPtr<NewSVGPropertyBase> to, SVGElem ent*) |
| 212 { | 211 { |
| 213 // FIXME: Distance calculation is not possible for SVGPointList right now. W e need the distance for every single value. | 212 // FIXME: Distance calculation is not possible for SVGPointList right now. W e need the distance for every single value. |
| 214 return -1; | 213 return -1; |
| 215 } | 214 } |
| 216 | 215 |
| 217 } | 216 } |
| OLD | NEW |