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

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

Issue 2896543002: Implements CSSPropertyAPI for the animation-name property. (Closed)
Patch Set: Change parseSingleValue method to take local context as input. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "core/css/properties/CSSPropertyAPIAnimationName.h"
6
7 #include "core/css/parser/CSSParserLocalContext.h"
8 #include "core/css/parser/CSSPropertyParserHelpers.h"
9 #include "core/css/properties/CSSPropertyAnimationNameUtils.h"
10
11 class CSSParserContext;
12
13 namespace blink {
14
15 const CSSValue* CSSPropertyAPIAnimationName::parseSingleValue(
16 CSSParserTokenRange& range,
17 const CSSParserContext& context,
18 const CSSParserLocalContext& local_context) {
19 // Allow quoted name if this is an alias property.
20 return CSSPropertyParserHelpers::ConsumeCommaSeparatedList(
21 CSSPropertyAnimationNameUtils::ConsumeAnimationName, range, &context,
22 local_context.GetUseAliasParsing());
23 }
24
25 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698