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

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

Issue 183743004: Remove moar unused SVG methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | 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 21 matching lines...) Expand all
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class FloatPoint; 34 class FloatPoint;
35 class FloatRect; 35 class FloatRect;
36 class SVGPointList; 36 class SVGPointList;
37 37
38 template <typename CharType> 38 template <typename CharType>
39 bool parseSVGNumber(CharType* ptr, size_t length, double& number); 39 bool parseSVGNumber(CharType* ptr, size_t length, double& number);
40 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip = true); 40 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip = true);
41 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip = true); 41 bool parseNumber(const UChar*& ptr, const UChar* end, float& number, bool skip = true);
42 bool parseNumberFromString(const String&, float& number, bool skip = true);
43 bool parseNumberOptionalNumber(const String& s, float& h, float& v); 42 bool parseNumberOptionalNumber(const String& s, float& h, float& v);
44 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag); 43 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag);
45 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag); 44 bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag);
46 45
47 template <typename CharType> 46 template <typename CharType>
48 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&) ; 47 bool parseFloatPoint(const CharType*& current, const CharType* end, FloatPoint&) ;
49 template <typename CharType> 48 template <typename CharType>
50 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&); 49 bool parseFloatPoint2(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&);
51 template <typename CharType> 50 template <typename CharType>
52 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&, FloatPoint&); 51 bool parseFloatPoint3(const CharType*& current, const CharType* end, FloatPoint& , FloatPoint&, FloatPoint&);
(...skipping 21 matching lines...) Expand all
74 return false; 73 return false;
75 if (skipOptionalSVGSpaces(ptr, end)) { 74 if (skipOptionalSVGSpaces(ptr, end)) {
76 if (ptr < end && *ptr == delimiter) { 75 if (ptr < end && *ptr == delimiter) {
77 ptr++; 76 ptr++;
78 skipOptionalSVGSpaces(ptr, end); 77 skipOptionalSVGSpaces(ptr, end);
79 } 78 }
80 } 79 }
81 return ptr < end; 80 return ptr < end;
82 } 81 }
83 82
84 bool pointsListFromSVGData(SVGPointList& pointsList, const String& points);
85 Vector<String> parseDelimitedString(const String& input, const char seperator); 83 Vector<String> parseDelimitedString(const String& input, const char seperator);
86 bool parseKerningUnicodeString(const String& input, UnicodeRanges&, HashSet<Stri ng>& stringList); 84 bool parseKerningUnicodeString(const String& input, UnicodeRanges&, HashSet<Stri ng>& stringList);
87 bool parseGlyphName(const String& input, HashSet<String>& values); 85 bool parseGlyphName(const String& input, HashSet<String>& values);
88 86
89 template<typename CharType> 87 template<typename CharType>
90 bool parseAndSkipTransformType(const CharType*& ptr, const CharType* end, SVGTra nsformType&); 88 bool parseAndSkipTransformType(const CharType*& ptr, const CharType* end, SVGTra nsformType&);
91 SVGTransformType parseTransformType(const String&); 89 SVGTransformType parseTransformType(const String&);
92 90
93 } // namespace WebCore 91 } // namespace WebCore
94 92
95 #endif // SVGParserUtilities_h 93 #endif // SVGParserUtilities_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGParserUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698