Backing out part of patch for bug 211128, since it regressed all sorts of

XBL-ish stuff.  r=stuff-is-broken sr=jag for the backout.
This commit is contained in:
bzbarsky@mit.edu
2003-07-14 05:35:09 +00:00
parent 9c4c0dc48d
commit 3ded3ddab7
5 changed files with 25 additions and 69 deletions

View File

@@ -152,12 +152,9 @@ nsHTMLEditor::CreateAnonymousElement(const nsAString & aTag, nsIDOMNode * aPare
// establish parenthood of the element
newContent->SetNativeAnonymous(PR_TRUE);
newContent->SetDocument(doc, PR_TRUE, PR_TRUE);
// Set the binding parent first, since setting the parent may cause relative
// URIs to change (due to xml:base) and |newContent| may need to be able to
// tell that it's anonymous content as it recomputes its base URI.
newContent->SetBindingParent(newContent);
newContent->SetParent(parentContent);
newContent->SetDocument(doc, PR_TRUE, PR_TRUE);
newContent->SetBindingParent(newContent);
// display the element
ps->RecreateFramesFor(newContent);