mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Form needs to be explicitly inserted, since I need the frame to be made.
This commit is contained in:
parent
491557ab29
commit
ae72792dee
@ -735,8 +735,9 @@ RDFXULBuilderImpl::CreateContents(nsIContent* aElement)
|
||||
if (htmlFormElement) {
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(htmlFormElement);
|
||||
if (content) {
|
||||
// Set the parent.
|
||||
content->SetParent(mRoot);
|
||||
// XXX Would like to make this anonymous, but still need
|
||||
// the form's frame to get built. For now make it explicit.
|
||||
mRoot->InsertChildAt(content, 0, PR_FALSE);
|
||||
}
|
||||
mDocument->SetForm(htmlFormElement);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user