OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSPropertyParserHelpers_h | 5 #ifndef CSSPropertyParserHelpers_h |
6 #define CSSPropertyParserHelpers_h | 6 #define CSSPropertyParserHelpers_h |
7 | 7 |
8 #include "core/css/CSSCustomIdentValue.h" | 8 #include "core/css/CSSCustomIdentValue.h" |
9 #include "core/css/CSSIdentifierValue.h" | 9 #include "core/css/CSSIdentifierValue.h" |
10 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 CSSPrimitiveValue* ConsumeLength(CSSParserTokenRange&, | 48 CSSPrimitiveValue* ConsumeLength(CSSParserTokenRange&, |
49 CSSParserMode, | 49 CSSParserMode, |
50 ValueRange, | 50 ValueRange, |
51 UnitlessQuirk = UnitlessQuirk::kForbid); | 51 UnitlessQuirk = UnitlessQuirk::kForbid); |
52 CSSPrimitiveValue* ConsumePercent(CSSParserTokenRange&, ValueRange); | 52 CSSPrimitiveValue* ConsumePercent(CSSParserTokenRange&, ValueRange); |
53 CSSPrimitiveValue* ConsumeLengthOrPercent( | 53 CSSPrimitiveValue* ConsumeLengthOrPercent( |
54 CSSParserTokenRange&, | 54 CSSParserTokenRange&, |
55 CSSParserMode, | 55 CSSParserMode, |
56 ValueRange, | 56 ValueRange, |
57 UnitlessQuirk = UnitlessQuirk::kForbid); | 57 UnitlessQuirk = UnitlessQuirk::kForbid); |
58 CSSPrimitiveValue* ConsumeAngle(CSSParserTokenRange&); | 58 |
| 59 CSSPrimitiveValue* ConsumeAngle( |
| 60 CSSParserTokenRange&, |
| 61 const CSSParserContext&, |
| 62 WTF::Optional<UseCounter::Feature> unitlessZeroFeature); |
59 CSSPrimitiveValue* ConsumeTime(CSSParserTokenRange&, ValueRange); | 63 CSSPrimitiveValue* ConsumeTime(CSSParserTokenRange&, ValueRange); |
60 CSSPrimitiveValue* ConsumeResolution(CSSParserTokenRange&); | 64 CSSPrimitiveValue* ConsumeResolution(CSSParserTokenRange&); |
61 | 65 |
62 CSSIdentifierValue* ConsumeIdent(CSSParserTokenRange&); | 66 CSSIdentifierValue* ConsumeIdent(CSSParserTokenRange&); |
63 CSSIdentifierValue* ConsumeIdentRange(CSSParserTokenRange&, | 67 CSSIdentifierValue* ConsumeIdentRange(CSSParserTokenRange&, |
64 CSSValueID lower, | 68 CSSValueID lower, |
65 CSSValueID upper); | 69 CSSValueID upper); |
66 template <CSSValueID, CSSValueID...> | 70 template <CSSValueID, CSSValueID...> |
67 inline bool IdentMatches(CSSValueID id); | 71 inline bool IdentMatches(CSSValueID id); |
68 template <CSSValueID... allowedIdents> | 72 template <CSSValueID... allowedIdents> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } while (ConsumeCommaIncludingWhitespace(range)); | 147 } while (ConsumeCommaIncludingWhitespace(range)); |
144 DCHECK(list->length()); | 148 DCHECK(list->length()); |
145 return list; | 149 return list; |
146 } | 150 } |
147 | 151 |
148 } // namespace CSSPropertyParserHelpers | 152 } // namespace CSSPropertyParserHelpers |
149 | 153 |
150 } // namespace blink | 154 } // namespace blink |
151 | 155 |
152 #endif // CSSPropertyParserHelpers_h | 156 #endif // CSSPropertyParserHelpers_h |
OLD | NEW |