Bug 842329 - Part 3: Serialize the "all" shorthand property as the empty string unless all components are inherit/initial/unset. r=bzbarsky

This commit is contained in:
Cameron McCormack 2013-10-04 04:49:20 +10:00
Родитель fb248cc0a3
Коммит 56501a1c99
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -859,6 +859,12 @@ Declaration::GetValue(nsCSSProperty aProperty, nsAString& aValue) const
AppendValueToString(subprops[0], aValue);
break;
}
case eCSSProperty_all:
// If we got here, then we didn't have all "inherit" or "initial" or
// "unset" values for all of the longhand property components of 'all'.
// There is no other possible value that is valid for all properties,
// so serialize as the empty string.
break;
default:
NS_ABORT_IF_FALSE(false, "no other shorthands");
break;