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

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

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline Created 6 years, 11 months 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/SVGGeometryElement.cpp ('k') | Source/core/svg/SVGParserUtilities.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) 2002, 2003 The Karbon Developers 2 * Copyright (C) 2002, 2003 The Karbon Developers
3 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2013 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 26 matching lines...) Expand all
37 class SVGTransformList; 37 class SVGTransformList;
38 38
39 template <typename CharType> 39 template <typename CharType>
40 bool parseSVGNumber(CharType* ptr, size_t length, double& number); 40 bool parseSVGNumber(CharType* ptr, size_t length, double& number);
41 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip = true); 41 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip = true);
42 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip = true); 42 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip = true);
43 bool parseNumberFromString(const String&, float& number, bool skip = true); 43 bool parseNumberFromString(const String&, float& number, bool skip = true);
44 bool parseNumberOptionalNumber(const String& s, float& h, float& v); 44 bool parseNumberOptionalNumber(const String& s, float& h, float& v);
45 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag); 45 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag);
46 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag); 46 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag);
47 bool parseRect(const String&, FloatRect&);
48 47
49 template <typename CharType> 48 template <typename CharType>
50 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&) ; 49 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&) ;
51 template <typename CharType> 50 template <typename CharType>
52 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&); 51 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&);
53 template <typename CharType> 52 template <typename CharType>
54 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&, FloatPoint&); 53 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&, FloatPoint&);
55 54
56 // SVG allows several different whitespace characters: 55 // SVG allows several different whitespace characters:
57 // http://www.w3.org/TR/SVG/paths.html#PathDataBNF 56 // http://www.w3.org/TR/SVG/paths.html#PathDataBNF
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool parseTransformAttribute(SVGTransformList&, const UChar*& ptr, const UChar* end, TransformParsingMode = ClearList); 96 bool parseTransformAttribute(SVGTransformList&, const UChar*& ptr, const UChar* end, TransformParsingMode = ClearList);
98 97
99 bool parseTransformValue(unsigned type, const LChar*& ptr, const LChar* end, SVG Transform&); 98 bool parseTransformValue(unsigned type, const LChar*& ptr, const LChar* end, SVG Transform&);
100 bool parseTransformValue(unsigned type, const UChar*& ptr, const UChar* end, SVG Transform&); 99 bool parseTransformValue(unsigned type, const UChar*& ptr, const UChar* end, SVG Transform&);
101 100
102 SVGTransform::SVGTransformType parseTransformType(const String&); 101 SVGTransform::SVGTransformType parseTransformType(const String&);
103 102
104 } // namespace WebCore 103 } // namespace WebCore
105 104
106 #endif // SVGParserUtilities_h 105 #endif // SVGParserUtilities_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGeometryElement.cpp ('k') | Source/core/svg/SVGParserUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698