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

Unified Diff: Source/core/css/CSSParser.cpp

Issue 16209003: Unprefix the @viewport rule of CSS Device Adaptation spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSGrammar.y.in ('k') | Source/core/css/CSSRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParser.cpp
diff --git a/Source/core/css/CSSParser.cpp b/Source/core/css/CSSParser.cpp
index 76af9509a320d75c4da04c84c0f035d5b46df6a9..33efaeb4dbf4c110aae966606553df5d7a686fab 100644
--- a/Source/core/css/CSSParser.cpp
+++ b/Source/core/css/CSSParser.cpp
@@ -10218,6 +10218,11 @@ inline void CSSParser::detectAtToken(int length, bool hasEscape)
}
return;
+ case 'v':
+ if (length == 9 && isEqualToCSSIdentifier(name + 2, "iewport"))
+ m_token = VIEWPORT_RULE_SYM;
+ return;
+
case '-':
switch (length) {
case 15:
@@ -10251,14 +10256,6 @@ inline void CSSParser::detectAtToken(int length, bool hasEscape)
m_token = INTERNAL_VALUE_SYM;
return;
- case 17:
- if (hasEscape)
- return;
-
- else if (isASCIIAlphaCaselessEqual(name[16], 't') && isEqualToCSSIdentifier(name + 2, "webkit-viewpor"))
- m_token = WEBKIT_VIEWPORT_RULE_SYM;
- return;
-
case 18:
if (isEqualToCSSIdentifier(name + 2, "webkit-keyframes"))
m_token = WEBKIT_KEYFRAMES_SYM;
« no previous file with comments | « Source/core/css/CSSGrammar.y.in ('k') | Source/core/css/CSSRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698