| Index: WebCore/svg/SVGLength.cpp
|
| ===================================================================
|
| --- WebCore/svg/SVGLength.cpp (revision 75419)
|
| +++ WebCore/svg/SVGLength.cpp (working copy)
|
| @@ -92,13 +92,9 @@
|
| return LengthTypeNumber;
|
|
|
| const UChar firstChar = *ptr;
|
| - ++ptr;
|
|
|
| - if (firstChar == '%') {
|
| - if (ptr == end)
|
| - return LengthTypePercentage;
|
| - return LengthTypeUnknown;
|
| - }
|
| + if (++ptr == end)
|
| + return firstChar == '%' ? LengthTypePercentage : LengthTypeUnknown;
|
|
|
| const UChar secondChar = *ptr;
|
|
|
|
|