Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPaintOrder.cpp

Issue 2808383008: Added unresolved property argument to ParseSingleValue method (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698