| 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 * | 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #include "config.h" | 20 #include "config.h" |
| 21 | |
| 22 #include "core/svg/SVGPathByteStreamSource.h" | 21 #include "core/svg/SVGPathByteStreamSource.h" |
| 23 | 22 |
| 24 namespace blink { | 23 namespace blink { |
| 25 | 24 |
| 26 SVGPathByteStreamSource::SVGPathByteStreamSource(const SVGPathByteStream* stream
) | |
| 27 { | |
| 28 ASSERT(stream); | |
| 29 m_streamCurrent = stream->begin(); | |
| 30 m_streamEnd = stream->end(); | |
| 31 } | |
| 32 | |
| 33 bool SVGPathByteStreamSource::hasMoreData() const | 25 bool SVGPathByteStreamSource::hasMoreData() const |
| 34 { | 26 { |
| 35 return m_streamCurrent < m_streamEnd; | 27 return m_streamCurrent < m_streamEnd; |
| 36 } | 28 } |
| 37 | 29 |
| 38 bool SVGPathByteStreamSource::parseSVGSegmentType(SVGPathSegType& pathSegType) | 30 bool SVGPathByteStreamSource::parseSVGSegmentType(SVGPathSegType& pathSegType) |
| 39 { | 31 { |
| 40 pathSegType = static_cast<SVGPathSegType>(readSVGSegmentType()); | 32 pathSegType = static_cast<SVGPathSegType>(readSVGSegmentType()); |
| 41 return true; | 33 return true; |
| 42 } | 34 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 rx = readFloat(); | 95 rx = readFloat(); |
| 104 ry = readFloat(); | 96 ry = readFloat(); |
| 105 angle = readFloat(); | 97 angle = readFloat(); |
| 106 largeArc = readFlag(); | 98 largeArc = readFlag(); |
| 107 sweep = readFlag(); | 99 sweep = readFlag(); |
| 108 targetPoint = readFloatPoint(); | 100 targetPoint = readFloatPoint(); |
| 109 return true; | 101 return true; |
| 110 } | 102 } |
| 111 | 103 |
| 112 } | 104 } |
| OLD | NEW |