Make XUL elements really native anonymous b=410119 r=smaug sr+a=sicking

This commit is contained in:
2008-01-04 03:24:41 -08:00
parent e329e9cf59
commit c383d1b11d
10 changed files with 38 additions and 94 deletions

View File

@@ -152,7 +152,7 @@ nsHTMLEditor::CreateAnonymousElement(const nsAString & aTag, nsIDOMNode * aPare
}
// establish parenthood of the element
newContent->SetNativeAnonymous(PR_TRUE);
newContent->SetNativeAnonymous();
res = newContent->BindToTree(doc, parentContent, newContent, PR_TRUE);
if (NS_FAILED(res)) {
newContent->UnbindFromTree();