OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010, 2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010, 2012. 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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #include "core/svg/SVGPathConsumer.h" | 23 #include "core/svg/SVGPathConsumer.h" |
24 #include "platform/geometry/FloatPoint.h" | 24 #include "platform/geometry/FloatPoint.h" |
25 #include "wtf/OwnPtr.h" | 25 #include "wtf/OwnPtr.h" |
26 #include "wtf/text/WTFString.h" | 26 #include "wtf/text/WTFString.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace WebCore { |
29 | 29 |
30 class Path; | 30 class Path; |
31 class SVGPathByteStream; | 31 class SVGPathByteStream; |
32 class SVGPathElement; | |
33 class SVGPathSeg; | 32 class SVGPathSeg; |
34 class SVGPathSegList; | 33 class SVGPathSegList; |
35 | 34 |
36 // String/SVGPathByteStream -> Path | 35 // String/SVGPathByteStream -> Path |
37 bool buildPathFromString(const String&, Path&); | 36 bool buildPathFromString(const String&, Path&); |
38 bool buildPathFromByteStream(const SVGPathByteStream*, Path&); | 37 bool buildPathFromByteStream(const SVGPathByteStream*, Path&); |
39 | 38 |
40 // SVGPathSegList/String -> SVGPathByteStream | 39 // SVGPathSegList/String -> SVGPathByteStream |
41 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtr<SVGPathSeg>, SVGPathByteSt
ream*, PathParsingMode); | 40 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtr<SVGPathSeg>, SVGPathByteSt
ream*, PathParsingMode); |
42 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream*, PathPar
singMode); | 41 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream*, PathPar
singMode); |
43 | 42 |
44 // SVGPathByteStream/SVGPathSegList -> String | 43 // SVGPathByteStream/SVGPathSegList -> String |
45 bool buildStringFromByteStream(const SVGPathByteStream*, String&, PathParsingMod
e); | 44 bool buildStringFromByteStream(const SVGPathByteStream*, String&, PathParsingMod
e); |
46 bool buildStringFromSVGPathSegList(PassRefPtr<SVGPathSegList>, String&, PathPars
ingMode); | 45 bool buildStringFromSVGPathSegList(PassRefPtr<SVGPathSegList>, String&, PathPars
ingMode); |
47 | 46 |
48 bool addToSVGPathByteStream(SVGPathByteStream*, const SVGPathByteStream*, unsign
ed repeatCount = 1); | 47 bool addToSVGPathByteStream(SVGPathByteStream*, const SVGPathByteStream*, unsign
ed repeatCount = 1); |
49 | 48 |
50 bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream*, float
length, unsigned& pathSeg); | 49 bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream*, float
length, unsigned& pathSeg); |
51 bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream*, float& totalLen
gth); | 50 bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream*, float& totalLen
gth); |
52 bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream*, float length,
FloatPoint&); | 51 bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream*, float length,
FloatPoint&); |
53 | 52 |
54 } // namespace WebCore | 53 } // namespace WebCore |
55 | 54 |
56 #endif // SVGPathUtilities_h | 55 #endif // SVGPathUtilities_h |
OLD | NEW |