зеркало из https://github.com/mozilla/gecko-dev.git
fix for #12703 - don't hold onto XULElements after they have been removed from the tree - don't bother checking mDocument because it will be null when the content has been removed from the document
r=hyatt
This commit is contained in:
Родитель
2e20cb2819
Коммит
4033a6f681
|
@ -2226,7 +2226,7 @@ nsXULElement::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNotif
|
|||
// unsetting these attributes forces us to update our selected arrays.
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
GetTag(*getter_AddRefs(tag));
|
||||
if (mDocument && (aNameSpaceID == kNameSpaceID_None)) {
|
||||
if (aNameSpaceID == kNameSpaceID_None) {
|
||||
// See if we're a treeitem atom.
|
||||
// XXX Forgive me father, for I know exactly what I do, and I'm
|
||||
// doing it anyway. Need to make an nsIRDFNodeList interface that
|
||||
|
|
|
@ -2226,7 +2226,7 @@ nsXULElement::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNotif
|
|||
// unsetting these attributes forces us to update our selected arrays.
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
GetTag(*getter_AddRefs(tag));
|
||||
if (mDocument && (aNameSpaceID == kNameSpaceID_None)) {
|
||||
if (aNameSpaceID == kNameSpaceID_None) {
|
||||
// See if we're a treeitem atom.
|
||||
// XXX Forgive me father, for I know exactly what I do, and I'm
|
||||
// doing it anyway. Need to make an nsIRDFNodeList interface that
|
||||
|
|
Загрузка…
Ссылка в новой задаче