| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 ValueRange, | 45 ValueRange, |
| 46 UnitlessQuirk = UnitlessQuirk::Forbid); | 46 UnitlessQuirk = UnitlessQuirk::Forbid); |
| 47 CSSPrimitiveValue* consumePercent(CSSParserTokenRange&, ValueRange); | 47 CSSPrimitiveValue* consumePercent(CSSParserTokenRange&, ValueRange); |
| 48 CSSPrimitiveValue* consumeLengthOrPercent( | 48 CSSPrimitiveValue* consumeLengthOrPercent( |
| 49 CSSParserTokenRange&, | 49 CSSParserTokenRange&, |
| 50 CSSParserMode, | 50 CSSParserMode, |
| 51 ValueRange, | 51 ValueRange, |
| 52 UnitlessQuirk = UnitlessQuirk::Forbid); | 52 UnitlessQuirk = UnitlessQuirk::Forbid); |
| 53 CSSPrimitiveValue* consumeAngle(CSSParserTokenRange&); | 53 CSSPrimitiveValue* consumeAngle(CSSParserTokenRange&); |
| 54 CSSPrimitiveValue* consumeTime(CSSParserTokenRange&, ValueRange); | 54 CSSPrimitiveValue* consumeTime(CSSParserTokenRange&, ValueRange); |
| 55 CSSPrimitiveValue* consumeResolution(CSSParserTokenRange&); |
| 55 | 56 |
| 56 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); | 57 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); |
| 57 CSSIdentifierValue* consumeIdentRange(CSSParserTokenRange&, | 58 CSSIdentifierValue* consumeIdentRange(CSSParserTokenRange&, |
| 58 CSSValueID lower, | 59 CSSValueID lower, |
| 59 CSSValueID upper); | 60 CSSValueID upper); |
| 60 template <CSSValueID, CSSValueID...> | 61 template <CSSValueID, CSSValueID...> |
| 61 inline bool identMatches(CSSValueID id); | 62 inline bool identMatches(CSSValueID id); |
| 62 template <CSSValueID... allowedIdents> | 63 template <CSSValueID... allowedIdents> |
| 63 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); | 64 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); |
| 64 | 65 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 !identMatches<names...>(range.peek().id())) | 115 !identMatches<names...>(range.peek().id())) |
| 115 return nullptr; | 116 return nullptr; |
| 116 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id()); | 117 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id()); |
| 117 } | 118 } |
| 118 | 119 |
| 119 } // namespace CSSPropertyParserHelpers | 120 } // namespace CSSPropertyParserHelpers |
| 120 | 121 |
| 121 } // namespace blink | 122 } // namespace blink |
| 122 | 123 |
| 123 #endif // CSSPropertyParserHelpers_h | 124 #endif // CSSPropertyParserHelpers_h |
| OLD | NEW |