Improve box object hashtable storage b=326931 r=jst sr=bz

This commit is contained in:
neil@parkwaycc.co.uk
2006-04-26 12:42:49 +00:00
parent 190ab5d1ac
commit b2112ede28
6 changed files with 34 additions and 48 deletions

View File

@@ -1850,12 +1850,7 @@ nsGenericElement::UnbindFromTree(PRBool aDeep, PRBool aNullParent)
document->ForgetLink(this);
}
nsCOMPtr<nsIDOMElement> domElement = do_QueryInterface(this);
if (domElement) {
nsCOMPtr<nsIDOMNSDocument> nsDoc = do_QueryInterface(document);
nsDoc->SetBoxObjectFor(domElement, nsnull);
}
document->ClearBoxObjectFor(this);
}
// Unset things in the reverse order from how we set them in BindToTree