зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1323702 - Support cloning XUL element style="" attributes in Servo-styled documents. r=bholley
MozReview-Commit-ID: Am2GjOCDVoe --HG-- extra : rebase_source : 526acb17a154c0549f84631408b0a6ed0cd3004e
This commit is contained in:
Родитель
b0df943433
Коммит
45d97aa6f1
|
@ -381,8 +381,7 @@ nsXULElement::Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const
|
|||
// Style rules need to be cloned.
|
||||
if (originalValue->Type() == nsAttrValue::eCSSDeclaration) {
|
||||
DeclarationBlock* decl = originalValue->GetCSSDeclarationValue();
|
||||
RefPtr<css::Declaration>
|
||||
declClone = new css::Declaration(*decl->AsGecko());
|
||||
RefPtr<DeclarationBlock> declClone = decl->Clone();
|
||||
|
||||
nsString stringValue;
|
||||
originalValue->ToString(stringValue);
|
||||
|
@ -1918,8 +1917,7 @@ nsXULElement::MakeHeavyweight(nsXULPrototypeElement* aPrototype)
|
|||
// Style rules need to be cloned.
|
||||
if (protoattr->mValue.Type() == nsAttrValue::eCSSDeclaration) {
|
||||
DeclarationBlock* decl = protoattr->mValue.GetCSSDeclarationValue();
|
||||
RefPtr<css::Declaration>
|
||||
declClone = new css::Declaration(*decl->AsGecko());
|
||||
RefPtr<DeclarationBlock> declClone = decl->Clone();
|
||||
|
||||
nsString stringValue;
|
||||
protoattr->mValue.ToString(stringValue);
|
||||
|
|
|
@ -51,7 +51,7 @@ load 443089-1.xhtml
|
|||
load 463763-1.xhtml
|
||||
load 463763-2.xhtml
|
||||
load 476547-1.xhtml
|
||||
skip-if(stylo) load 477740-1.xhtml # bug 1323702
|
||||
load 477740-1.xhtml
|
||||
load 541620-1.xhtml
|
||||
load 557474-1.html
|
||||
load 654928-1.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче