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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 CSSValueID lower, | 59 CSSValueID lower, |
60 CSSValueID upper); | 60 CSSValueID upper); |
61 template <CSSValueID, CSSValueID...> | 61 template <CSSValueID, CSSValueID...> |
62 inline bool identMatches(CSSValueID id); | 62 inline bool identMatches(CSSValueID id); |
63 template <CSSValueID... allowedIdents> | 63 template <CSSValueID... allowedIdents> |
64 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); | 64 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); |
65 | 65 |
66 CSSCustomIdentValue* consumeCustomIdent(CSSParserTokenRange&); | 66 CSSCustomIdentValue* consumeCustomIdent(CSSParserTokenRange&); |
67 CSSStringValue* consumeString(CSSParserTokenRange&); | 67 CSSStringValue* consumeString(CSSParserTokenRange&); |
68 StringView consumeUrlAsStringView(CSSParserTokenRange&); | 68 StringView consumeUrlAsStringView(CSSParserTokenRange&); |
69 CSSURIValue* consumeUrl(CSSParserTokenRange&); | 69 CSSURIValue* consumeUrl(CSSParserTokenRange&, const CSSParserContext*); |
70 | 70 |
71 CSSValue* consumeColor(CSSParserTokenRange&, | 71 CSSValue* consumeColor(CSSParserTokenRange&, |
72 CSSParserMode, | 72 CSSParserMode, |
73 bool acceptQuirkyColors = false); | 73 bool acceptQuirkyColors = false); |
74 | 74 |
75 CSSValuePair* consumePosition(CSSParserTokenRange&, | 75 CSSValuePair* consumePosition(CSSParserTokenRange&, |
76 CSSParserMode, | 76 CSSParserMode, |
77 UnitlessQuirk); | 77 UnitlessQuirk); |
78 bool consumePosition(CSSParserTokenRange&, | 78 bool consumePosition(CSSParserTokenRange&, |
79 CSSParserMode, | 79 CSSParserMode, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 !identMatches<names...>(range.peek().id())) | 115 !identMatches<names...>(range.peek().id())) |
116 return nullptr; | 116 return nullptr; |
117 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id()); | 117 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id()); |
118 } | 118 } |
119 | 119 |
120 } // namespace CSSPropertyParserHelpers | 120 } // namespace CSSPropertyParserHelpers |
121 | 121 |
122 } // namespace blink | 122 } // namespace blink |
123 | 123 |
124 #endif // CSSPropertyParserHelpers_h | 124 #endif // CSSPropertyParserHelpers_h |
OLD | NEW |