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

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

Issue 2897833004: Refactored out need to pass property ID in background list parsing. (Closed)
Patch Set: changed enum to enum class and addressed comments Created 3 years, 6 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/CSSPropertyAPIAnimationName.h" 5 #include "core/css/properties/CSSPropertyAPIAnimationName.h"
6 6
7 #include "core/css/parser/CSSParserLocalContext.h" 7 #include "core/css/parser/CSSParserLocalContext.h"
8 #include "core/css/parser/CSSPropertyParserHelpers.h" 8 #include "core/css/parser/CSSPropertyParserHelpers.h"
9 #include "core/css/properties/CSSPropertyAnimationNameUtils.h" 9 #include "core/css/properties/CSSPropertyAnimationNameUtils.h"
10 10
11 class CSSParserContext; 11 class CSSParserContext;
12 12
13 namespace blink { 13 namespace blink {
14 14
15 const CSSValue* CSSPropertyAPIAnimationName::parseSingleValue( 15 const CSSValue* CSSPropertyAPIAnimationName::parseSingleValue(
16 CSSParserTokenRange& range, 16 CSSParserTokenRange& range,
17 const CSSParserContext& context, 17 const CSSParserContext& context,
18 const CSSParserLocalContext& local_context) { 18 const CSSParserLocalContext& local_context) {
19 // Allow quoted name if this is an alias property. 19 // Allow quoted name if this is an alias property.
20 return CSSPropertyParserHelpers::ConsumeCommaSeparatedList( 20 return CSSPropertyParserHelpers::ConsumeCommaSeparatedList(
21 CSSPropertyParserHelpers::Optimise::kNo,
21 CSSPropertyAnimationNameUtils::ConsumeAnimationName, range, &context, 22 CSSPropertyAnimationNameUtils::ConsumeAnimationName, range, &context,
22 local_context.GetUseAliasParsing()); 23 local_context.GetUseAliasParsing());
23 } 24 }
24 25
25 } // namespace blink 26 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698