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:
dbaron%dbaron.org
2004-09-08 05:42:03 +00:00
parent f6406239f8
commit d788090231
2 changed files with 8 additions and 0 deletions

View File

@@ -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("; ");

View File

@@ -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("; ");