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

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

Issue 1319343004: Add property parser code path based on CSSParserTokenRange (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 3 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/core.gypi ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryExp.cpp
diff --git a/Source/core/css/MediaQueryExp.cpp b/Source/core/css/MediaQueryExp.cpp
index ded6876154c87eaa9af3067b3d316ac1af889f2e..e702faeb2964c11f92a261395aa809569b0ace2a 100644
--- a/Source/core/css/MediaQueryExp.cpp
+++ b/Source/core/css/MediaQueryExp.cpp
@@ -30,7 +30,6 @@
#include "config.h"
#include "core/css/MediaQueryExp.h"
-#include "core/css/CSSPrimitiveValue.h"
#include "core/css/parser/CSSParserToken.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "platform/Decimal.h"
@@ -189,8 +188,6 @@ MediaQueryExp::MediaQueryExp(const String& mediaFeature, const MediaQueryExpValu
{
}
-CSSValueID cssValueKeywordID(const CSSParserString&);
-
PassOwnPtrWillBeRawPtr<MediaQueryExp> MediaQueryExp::createIfValid(const String& mediaFeature, const Vector<CSSParserToken, 4>& tokenList)
{
ASSERT(!mediaFeature.isNull());
@@ -205,7 +202,7 @@ PassOwnPtrWillBeRawPtr<MediaQueryExp> MediaQueryExp::createIfValid(const String&
CSSParserToken token = tokenList.first();
if (token.type() == IdentToken) {
- CSSValueID ident = cssValueKeywordID(token.value());
+ CSSValueID ident = token.id();
if (!featureWithValidIdent(lowerMediaFeature, ident))
return nullptr;
expValue.id = ident;
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698