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

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

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile again Created 3 years, 11 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698