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

Unified Diff: Source/core/css/parser/CSSGrammar.y

Issue 651123003: Use count strings as keyframes/animation-name identifiers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bug fix Created 6 years, 2 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
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSGrammar.y
diff --git a/Source/core/css/parser/CSSGrammar.y b/Source/core/css/parser/CSSGrammar.y
index 7cfe9df28ec4e789d777cb2e6ad964807f029c38..fbc2d03f2f2c67f9040853124e0323757526c6d4 100644
--- a/Source/core/css/parser/CSSGrammar.y
+++ b/Source/core/css/parser/CSSGrammar.y
@@ -39,6 +39,7 @@
#include "core/css/StyleRule.h"
#include "core/css/StyleSheetContents.h"
#include "core/dom/Document.h"
+#include "core/frame/UseCounter.h"
#include "wtf/FastMalloc.h"
#include <stdlib.h>
#include <string.h>
@@ -862,7 +863,9 @@ keyframes:
keyframe_name:
IDENT
- | STRING
+ | STRING {
+ parser->m_context.useCounter()->count(UseCounter::QuotedKeyframesRule);
+ }
;
keyframes_rule:
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698