Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: Source/core/svg/SVGPathUtilities.h

Issue 751323002: Simplify SVGPathByteStream-based path-query functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGPathUtilities.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 29 matching lines...) Expand all
40 // SVGPathSegList/String -> SVGPathByteStream 40 // SVGPathSegList/String -> SVGPathByteStream
41 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtrWillBeRawPtr<SVGPathSeg>, S VGPathByteStream&, PathParsingMode); 41 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtrWillBeRawPtr<SVGPathSeg>, S VGPathByteStream&, PathParsingMode);
42 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream&, PathPar singMode); 42 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream&, PathPar singMode);
43 43
44 // SVGPathByteStream/SVGPathSegList -> String 44 // SVGPathByteStream/SVGPathSegList -> String
45 bool buildStringFromByteStream(const SVGPathByteStream&, String&, PathParsingMod e); 45 bool buildStringFromByteStream(const SVGPathByteStream&, String&, PathParsingMod e);
46 bool buildStringFromSVGPathSegList(PassRefPtrWillBeRawPtr<SVGPathSegList>, Strin g&, PathParsingMode); 46 bool buildStringFromSVGPathSegList(PassRefPtrWillBeRawPtr<SVGPathSegList>, Strin g&, PathParsingMode);
47 47
48 bool addToSVGPathByteStream(SVGPathByteStream&, const SVGPathByteStream&, unsign ed repeatCount = 1); 48 bool addToSVGPathByteStream(SVGPathByteStream&, const SVGPathByteStream&, unsign ed repeatCount = 1);
49 49
50 bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream&, float length, unsigned& pathSeg); 50 unsigned getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream&, fl oat length);
51 bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream&, float& totalLen gth); 51 float getTotalLengthOfSVGPathByteStream(const SVGPathByteStream&);
52 bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream&, float length, FloatPoint&); 52 FloatPoint getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream&, float l ength);
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // SVGPathUtilities_h 56 #endif // SVGPathUtilities_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGPathUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698