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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user