mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 236619: Fix serializing style-attributes.
r/sr=bryner
This commit is contained in:
parent
90888b3e75
commit
0123ea9b1d
@ -299,14 +299,12 @@ nsAttrValue::ToString(nsAString& aResult) const
|
||||
}
|
||||
case eCSSStyleRule:
|
||||
{
|
||||
aResult.Truncate();
|
||||
nsCSSDeclaration* decl =
|
||||
GetMiscContainer()->mCSSStyleRule->GetDeclaration();
|
||||
if (decl) {
|
||||
decl->ToString(aResult);
|
||||
}
|
||||
else {
|
||||
aResult.Truncate();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user