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

Unified Diff: sky/engine/core/css/parser/CSSTokenizer-in.cpp

Issue 871773003: Remove @keyframe parsing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/css/parser/CSSGrammar.y ('k') | sky/tests/animation/basic-declarative.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/parser/CSSTokenizer-in.cpp
diff --git a/sky/engine/core/css/parser/CSSTokenizer-in.cpp b/sky/engine/core/css/parser/CSSTokenizer-in.cpp
index f4290b0ff26567ec18e5e0fd29baf0a0f5cfc7ac..4d808f5e2ef3881b90c65436ca159d7e3a09e84c 100644
--- a/sky/engine/core/css/parser/CSSTokenizer-in.cpp
+++ b/sky/engine/core/css/parser/CSSTokenizer-in.cpp
@@ -868,7 +868,7 @@ inline void CSSTokenizer::detectAtToken(int length, bool hasEscape)
--length;
// charset, font-face, media, supports,
- // -webkit-keyframes, keyframes, and -webkit-mediaquery are not affected by hasEscape.
+ // -webkit-mediaquery are not affected by hasEscape.
SWITCH(name, length) {
CASE("charset") {
if (name - 1 == dataStart<CharacterType>())
@@ -877,9 +877,6 @@ inline void CSSTokenizer::detectAtToken(int length, bool hasEscape)
CASE("font-face") {
m_token = FONT_FACE_SYM;
}
- CASE("keyframes") {
- m_token = KEYFRAMES_SYM;
- }
CASE("supports") {
m_parsingMode = SupportsMode;
m_token = SUPPORTS_SYM;
@@ -900,15 +897,6 @@ inline void CSSTokenizer::detectAtToken(int length, bool hasEscape)
if (LIKELY(!hasEscape && m_internal))
m_token = INTERNAL_SELECTOR_SYM;
}
- CASE("-internal-keyframe-rule") {
- if (LIKELY(!hasEscape && m_internal))
- m_token = INTERNAL_KEYFRAME_RULE_SYM;
- }
- CASE("-internal-keyframe-key-list") {
- if (!m_internal)
- return;
- m_token = INTERNAL_KEYFRAME_KEY_LIST_SYM;
- }
CASE("-internal-supports-condition") {
if (!m_internal)
return;
« no previous file with comments | « sky/engine/core/css/parser/CSSGrammar.y ('k') | sky/tests/animation/basic-declarative.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698