Fixing bug 207563. Make reparenting of wrapper for content nodes that are not part of a document work correctly. r=caillon@aillon.org, sr=peterv@netscape.com, a=brendan@mozilla.org, adt@netscape.com
This commit is contained in:
Родитель
00bec67ab4
Коммит
0a39b232cd
|
@ -716,7 +716,6 @@ nsContentUtils::doReparentContentWrapper(nsIContent *aChild,
|
|||
}
|
||||
|
||||
JSObject *old;
|
||||
|
||||
rv = old_wrapper->GetJSObject(&old);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
@ -786,7 +785,7 @@ nsContentUtils::ReparentContentWrapper(nsIContent *aContent,
|
|||
ni->GetDocument(*getter_AddRefs(old_doc));
|
||||
}
|
||||
|
||||
if (!aOldDocument) {
|
||||
if (!old_doc) {
|
||||
// If we can't find our old document we don't know what our old
|
||||
// scope was so there's no way to find the old wrapper
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче