removed select initialization code r=dcone bug 18241
git-svn-id: svn://10.0.0.236/trunk@54001 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -115,7 +115,6 @@
|
||||
#include "rdf.h"
|
||||
#include "rdfutil.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsISelectElement.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
@@ -4741,15 +4740,6 @@ nsXULDocument::CreateElement(nsXULPrototypeElement* aPrototype, nsIContent** aRe
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
htmlformctrl->SetForm(docform);
|
||||
|
||||
// check to see if the form element is a select
|
||||
// if it is, then tell it all the content is there,
|
||||
// even though the option haven't been added yet.
|
||||
nsresult srv;
|
||||
nsCOMPtr<nsISelectElement> select = do_QueryInterface(element, &srv);
|
||||
if (NS_SUCCEEDED(srv)) {
|
||||
srv = select->DoneAddingContent();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -115,7 +115,6 @@
|
||||
#include "rdf.h"
|
||||
#include "rdfutil.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsISelectElement.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
@@ -4741,15 +4740,6 @@ nsXULDocument::CreateElement(nsXULPrototypeElement* aPrototype, nsIContent** aRe
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
htmlformctrl->SetForm(docform);
|
||||
|
||||
// check to see if the form element is a select
|
||||
// if it is, then tell it all the content is there,
|
||||
// even though the option haven't been added yet.
|
||||
nsresult srv;
|
||||
nsCOMPtr<nsISelectElement> select = do_QueryInterface(element, &srv);
|
||||
if (NS_SUCCEEDED(srv)) {
|
||||
srv = select->DoneAddingContent();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user