Bug 1121768 - Part 4: Store token stream values in all subproperties of a shorthand with a variable reference. r=dbaron

This will make UA style sheet-only properties with a variable reference
work.  (It's probably unlikely that we'll ever have such properties,
though.)
This commit is contained in:
Cameron McCormack 2015-01-17 15:55:07 +11:00
parent e6c231b61f
commit e39b7feaa4

View File

@ -9651,7 +9651,7 @@ CSSParserImpl::ParseProperty(nsCSSProperty aPropID)
// If this is a shorthand property, we store the token stream on each
// of its corresponding longhand properties.
CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES(p, aPropID,
nsCSSProps::eEnabledForAllContent) {
PropertyEnabledState()) {
nsCSSValueTokenStream* tokenStream = new nsCSSValueTokenStream;
tokenStream->mPropertyID = *p;
tokenStream->mShorthandPropertyID = aPropID;