зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 101093. Content added dynamically using the DOM is now in the right scope if anonymous. r=blake, sr=jst
This commit is contained in:
Родитель
76e6695785
Коммит
38650acdce
|
@ -1648,7 +1648,12 @@ nsresult
|
|||
nsGenericElement::SetParent(nsIContent* aParent)
|
||||
{
|
||||
mParent = aParent;
|
||||
|
||||
if (aParent) {
|
||||
nsCOMPtr<nsIContent> bindingPar;
|
||||
aParent->GetBindingParent(getter_AddRefs(bindingPar));
|
||||
if (bindingPar)
|
||||
SetBindingParent(bindingPar);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -2511,6 +2511,13 @@ NS_IMETHODIMP
|
|||
nsXULElement::SetParent(nsIContent* aParent)
|
||||
{
|
||||
mParent = aParent; // no refcount
|
||||
if (aParent) {
|
||||
nsCOMPtr<nsIContent> bindingPar;
|
||||
aParent->GetBindingParent(getter_AddRefs(bindingPar));
|
||||
if (bindingPar)
|
||||
SetBindingParent(bindingPar);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче