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

Unified Diff: Source/core/css/parser/CSSParserValues.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/css/parser/CSSParserToken.cpp ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParserValues.cpp
diff --git a/Source/core/css/parser/CSSParserValues.cpp b/Source/core/css/parser/CSSParserValues.cpp
index 5d32628616b5b423a5bce110ba015e44fb063a5a..ec23f0e13357c0b31ffa0838c60642d0f79bafa2 100644
--- a/Source/core/css/parser/CSSParserValues.cpp
+++ b/Source/core/css/parser/CSSParserValues.cpp
@@ -65,7 +65,7 @@ CSSParserValueList::CSSParserValueList(CSSParserTokenRange range)
value.id = CSSValueInvalid;
value.isInt = false;
- CSSValueID id = cssValueKeywordID(token.value());
+ CSSValueID id = token.functionId();
if (id == CSSValueCalc || id == CSSValueWebkitCalc) {
value.m_unit = CSSParserValue::CalcFunction;
value.calcFunction = new CSSParserCalcFunction(range.consumeBlock());
@@ -108,7 +108,7 @@ CSSParserValueList::CSSParserValueList(CSSParserTokenRange range)
break;
}
case IdentToken: {
- value.id = cssValueKeywordID(token.value());
+ value.id = token.id();
value.isInt = false;
value.m_unit = CSSParserValue::Identifier;
value.string = token.value();
« no previous file with comments | « Source/core/css/parser/CSSParserToken.cpp ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698