зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1fd1338b7d
Коммит
6fc5f92154
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче