Chromium Code Reviews| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); | 62 CSSIdentifierValue* consumeIdent(CSSParserTokenRange&); |
| 63 | 63 |
| 64 CSSCustomIdentValue* consumeCustomIdent(CSSParserTokenRange&); | 64 CSSCustomIdentValue* consumeCustomIdent(CSSParserTokenRange&); |
| 65 CSSStringValue* consumeString(CSSParserTokenRange&); | 65 CSSStringValue* consumeString(CSSParserTokenRange&); |
| 66 StringView consumeUrlAsStringView(CSSParserTokenRange&); | 66 StringView consumeUrlAsStringView(CSSParserTokenRange&); |
| 67 CSSURIValue* consumeUrl(CSSParserTokenRange&); | 67 CSSURIValue* consumeUrl(CSSParserTokenRange&); |
| 68 | 68 |
| 69 CSSValue* consumeColor(CSSParserTokenRange&, | 69 CSSValue* consumeColor(CSSParserTokenRange&, |
| 70 CSSParserMode, | 70 CSSParserMode, |
| 71 bool acceptQuirkyColors = false); | 71 bool acceptQuirkyColors = false); |
| 72 CSSValue* consumeAutoOrColor(CSSParserTokenRange&, CSSParserMode); | |
|
Timothy Loh
2016/11/22 02:17:35
This probably isn't obvious but this sort of funct
Manuel Rego
2016/11/22 09:36:01
I added it here as is supposed that any new/future
| |
| 72 | 73 |
| 73 CSSValuePair* consumePosition(CSSParserTokenRange&, | 74 CSSValuePair* consumePosition(CSSParserTokenRange&, |
| 74 CSSParserMode, | 75 CSSParserMode, |
| 75 UnitlessQuirk); | 76 UnitlessQuirk); |
| 76 bool consumePosition(CSSParserTokenRange&, | 77 bool consumePosition(CSSParserTokenRange&, |
| 77 CSSParserMode, | 78 CSSParserMode, |
| 78 UnitlessQuirk, | 79 UnitlessQuirk, |
| 79 CSSValue*& resultX, | 80 CSSValue*& resultX, |
| 80 CSSValue*& resultY); | 81 CSSValue*& resultY); |
| 81 bool consumeOneOrTwoValuedPosition(CSSParserTokenRange&, | 82 bool consumeOneOrTwoValuedPosition(CSSParserTokenRange&, |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 112 !identMatches<names...>(range.peek().id())) | 113 !identMatches<names...>(range.peek().id())) |
| 113 return nullptr; | 114 return nullptr; |
| 114 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id()); | 115 return CSSIdentifierValue::create(range.consumeIncludingWhitespace().id()); |
| 115 } | 116 } |
| 116 | 117 |
| 117 } // namespace CSSPropertyParserHelpers | 118 } // namespace CSSPropertyParserHelpers |
| 118 | 119 |
| 119 } // namespace blink | 120 } // namespace blink |
| 120 | 121 |
| 121 #endif // CSSPropertyParserHelpers_h | 122 #endif // CSSPropertyParserHelpers_h |
| OLD | NEW |