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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIAnimationName.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIAnimationName.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIAnimationName.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..bd63423029a913f4817f60ba9179ad19b4b685a9
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIAnimationName.cpp
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "core/css/properties/CSSPropertyAPIAnimationName.h"
+
+#include "core/css/parser/CSSParserLocalContext.h"
+#include "core/css/parser/CSSPropertyParserHelpers.h"
+#include "core/css/properties/CSSPropertyAnimationNameUtils.h"
+
+class CSSParserContext;
+
+namespace blink {
+
+const CSSValue* CSSPropertyAPIAnimationName::parseSingleValue(
+ CSSParserTokenRange& range,
+ const CSSParserContext& context,
+ const CSSParserLocalContext& local_context) {
+ // Allow quoted name if this is an alias property.
+ return CSSPropertyParserHelpers::ConsumeCommaSeparatedList(
+ CSSPropertyAnimationNameUtils::ConsumeAnimationName, range, &context,
+ local_context.GetUseAliasParsing());
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698