OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "core/css/properties/CSSPropertyAPIPaintOrder.h" | 5 #include "core/css/properties/CSSPropertyAPIPaintOrder.h" |
6 | 6 |
7 #include "core/css/CSSValueList.h" | 7 #include "core/css/CSSValueList.h" |
8 #include "core/css/parser/CSSPropertyParserHelpers.h" | 8 #include "core/css/parser/CSSPropertyParserHelpers.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 const CSSValue* CSSPropertyAPIPaintOrder::parseSingleValue( | 12 const CSSValue* CSSPropertyAPIPaintOrder::parseSingleValue( |
13 CSSParserTokenRange& range, | 13 CSSParserTokenRange& range, |
14 const CSSParserContext& context) { | 14 const CSSParserContext& context, |
| 15 CSSPropertyID) { |
15 if (range.Peek().Id() == CSSValueNormal) | 16 if (range.Peek().Id() == CSSValueNormal) |
16 return CSSPropertyParserHelpers::ConsumeIdent(range); | 17 return CSSPropertyParserHelpers::ConsumeIdent(range); |
17 | 18 |
18 Vector<CSSValueID, 3> paint_type_list; | 19 Vector<CSSValueID, 3> paint_type_list; |
19 CSSIdentifierValue* fill = nullptr; | 20 CSSIdentifierValue* fill = nullptr; |
20 CSSIdentifierValue* stroke = nullptr; | 21 CSSIdentifierValue* stroke = nullptr; |
21 CSSIdentifierValue* markers = nullptr; | 22 CSSIdentifierValue* markers = nullptr; |
22 do { | 23 do { |
23 CSSValueID id = range.Peek().Id(); | 24 CSSValueID id = range.Peek().Id(); |
24 if (id == CSSValueFill && !fill) | 25 if (id == CSSValueFill && !fill) |
(...skipping 30 matching lines...) Expand all Loading... |
55 } | 56 } |
56 break; | 57 break; |
57 default: | 58 default: |
58 NOTREACHED(); | 59 NOTREACHED(); |
59 } | 60 } |
60 | 61 |
61 return paint_order_list; | 62 return paint_order_list; |
62 } | 63 } |
63 | 64 |
64 } // namespace blink | 65 } // namespace blink |
OLD | NEW |