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/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 |
OLD | NEW |