Bug 1294299 - Followup: Serialize style attribute for Element.getAttribute. r=heycam

MozReview-Commit-ID: DBDDpqV9eUM

--HG--
extra : rebase_source : 35498bf3202fb98863b5c44967ea28841ddf3f6c
This commit is contained in:
Xidorn Quan 2016-11-07 15:28:19 +11:00
Родитель 1fd1338b7d
Коммит 6fc5f92154
1 изменённых файлов: 2 добавлений и 5 удалений

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

@ -644,11 +644,8 @@ nsAttrValue::ToString(nsAString& aResult) const
{
aResult.Truncate();
MiscContainer *container = GetMiscContainer();
DeclarationBlock* decl = container->mValue.mCSSDeclaration;
// XXXheycam Once we support CSSOM access to them, we should
// probably serialize ServoDeclarationBlock like this too.
if (decl && decl->IsGecko()) {
decl->AsGecko()->ToString(aResult);
if (DeclarationBlock* decl = container->mValue.mCSSDeclaration) {
decl->ToString(aResult);
}
const_cast<nsAttrValue*>(this)->SetMiscAtomOrString(&aResult);