Fix serialization of declaration blocks containing 'overflow' and the bugs that causes. b=258300 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@161907 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -990,6 +990,10 @@ nsCSSDeclaration::TryOverflowShorthand(nsAString & aString,
|
||||
GetValueOrImportantValue(eCSSProperty_overflow_x, xValue);
|
||||
GetValueOrImportantValue(eCSSProperty_overflow_y, yValue);
|
||||
if (xValue == yValue) {
|
||||
AppendASCIItoUTF16(nsCSSProps::GetStringValue(eCSSProperty_overflow),
|
||||
aString);
|
||||
aString.AppendLiteral(": ");
|
||||
|
||||
AppendCSSValueToString(eCSSProperty_overflow_x, xValue, aString);
|
||||
AppendImportanceToString(isImportant, aString);
|
||||
aString.AppendLiteral("; ");
|
||||
|
||||
@@ -990,6 +990,10 @@ nsCSSDeclaration::TryOverflowShorthand(nsAString & aString,
|
||||
GetValueOrImportantValue(eCSSProperty_overflow_x, xValue);
|
||||
GetValueOrImportantValue(eCSSProperty_overflow_y, yValue);
|
||||
if (xValue == yValue) {
|
||||
AppendASCIItoUTF16(nsCSSProps::GetStringValue(eCSSProperty_overflow),
|
||||
aString);
|
||||
aString.AppendLiteral(": ");
|
||||
|
||||
AppendCSSValueToString(eCSSProperty_overflow_x, xValue, aString);
|
||||
AppendImportanceToString(isImportant, aString);
|
||||
aString.AppendLiteral("; ");
|
||||
|
||||
Reference in New Issue
Block a user