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 if (range.peek().id() == CSSValueNormal) | 15 if (range.peek().id() == CSSValueNormal) |
16 return CSSPropertyParserHelpers::consumeIdent(range); | 16 return CSSPropertyParserHelpers::consumeIdent(range); |
17 | 17 |
18 Vector<CSSValueID, 3> paintTypeList; | 18 Vector<CSSValueID, 3> paintTypeList; |
19 CSSIdentifierValue* fill = nullptr; | 19 CSSIdentifierValue* fill = nullptr; |
20 CSSIdentifierValue* stroke = nullptr; | 20 CSSIdentifierValue* stroke = nullptr; |
21 CSSIdentifierValue* markers = nullptr; | 21 CSSIdentifierValue* markers = nullptr; |
22 do { | 22 do { |
23 CSSValueID id = range.peek().id(); | 23 CSSValueID id = range.peek().id(); |
24 if (id == CSSValueFill && !fill) | 24 if (id == CSSValueFill && !fill) |
(...skipping 30 matching lines...) Expand all Loading... |
55 } | 55 } |
56 break; | 56 break; |
57 default: | 57 default: |
58 NOTREACHED(); | 58 NOTREACHED(); |
59 } | 59 } |
60 | 60 |
61 return paintOrderList; | 61 return paintOrderList; |
62 } | 62 } |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
OLD | NEW |