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

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

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/CSSParser-in.cpp ('k') | Source/core/css/CSSParserValues.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParserValues.h
diff --git a/Source/core/css/CSSParserValues.h b/Source/core/css/CSSParserValues.h
index 0aafa37c1bb65a0b27ce6fe0737e42508a1ae197..6655f5ad8bc42f1668a19c0c3577d1fdd97842fe 100644
--- a/Source/core/css/CSSParserValues.h
+++ b/Source/core/css/CSSParserValues.h
@@ -141,16 +141,19 @@ struct CSSParserValue {
int iValue;
CSSParserString string;
CSSParserFunction* function;
+ CSSParserValueList* valueList;
};
enum {
- Operator = 0x100000,
- Function = 0x100001,
- Q_EMS = 0x100002
+ Operator = 0x100000,
+ Function = 0x100001,
+ ValueList = 0x100002,
+ Q_EMS = 0x100003,
};
int unit;
inline void setFromNumber(double value, int unit = CSSPrimitiveValue::CSS_NUMBER);
inline void setFromFunction(CSSParserFunction*);
+ inline void setFromValueList(PassOwnPtr<CSSParserValueList>);
PassRefPtr<CSSValue> createCSSValue();
};
@@ -265,6 +268,13 @@ inline void CSSParserValue::setFromFunction(CSSParserFunction* function)
unit = Function;
}
+inline void CSSParserValue::setFromValueList(PassOwnPtr<CSSParserValueList> valueList)
+{
+ id = CSSValueInvalid;
+ this->valueList = valueList.leakPtr();
+ unit = ValueList;
+}
+
}
#endif
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSParserValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698