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

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

Issue 23528004: [CSS Grid Layout] Update named grid lines syntax to the last version of the specs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@named
Patch Set: Patch for landing v2 Created 7 years, 1 month 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/CSSParserValues.h ('k') | Source/core/css/CSSValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParserValues.cpp
diff --git a/Source/core/css/CSSParserValues.cpp b/Source/core/css/CSSParserValues.cpp
index 9863e9a59620bb6e0eaa5fd4502580e4705de4dd..822ee423a3ed7fc042fd434b56370e737bc0e650 100644
--- a/Source/core/css/CSSParserValues.cpp
+++ b/Source/core/css/CSSParserValues.cpp
@@ -36,6 +36,8 @@ CSSParserValueList::~CSSParserValueList()
for (size_t i = 0; i < numValues; i++) {
if (m_values[i].unit == CSSParserValue::Function)
delete m_values[i].function;
+ else if (m_values[i].unit == CSSParserValue::ValueList)
+ delete m_values[i].valueList;
}
}
@@ -73,6 +75,8 @@ PassRefPtr<CSSValue> CSSParserValue::createCSSValue()
}
if (unit == CSSParserValue::Function)
return CSSFunctionValue::create(function);
+ if (unit == CSSParserValue::ValueList)
+ return CSSValueList::createFromParserValueList(valueList);
if (unit >= CSSParserValue::Q_EMS)
return CSSPrimitiveValue::createAllowingMarginQuirk(fValue, CSSPrimitiveValue::CSS_EMS);
« no previous file with comments | « Source/core/css/CSSParserValues.h ('k') | Source/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698