From f5defbd9b7419bc6cb43c0139d6f72291488cc21 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 19 Nov 1999 15:42:06 +0000 Subject: [PATCH] removed select initialization code r=dcone bug 18241 git-svn-id: svn://10.0.0.236/trunk@54001 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xul/document/src/nsXULDocument.cpp | 10 ---------- mozilla/rdf/content/src/nsXULDocument.cpp | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/mozilla/content/xul/document/src/nsXULDocument.cpp b/mozilla/content/xul/document/src/nsXULDocument.cpp index 9023bddd666..74e08ec96f1 100644 --- a/mozilla/content/xul/document/src/nsXULDocument.cpp +++ b/mozilla/content/xul/document/src/nsXULDocument.cpp @@ -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 select = do_QueryInterface(element, &srv); - if (NS_SUCCEEDED(srv)) { - srv = select->DoneAddingContent(); - } } } else { diff --git a/mozilla/rdf/content/src/nsXULDocument.cpp b/mozilla/rdf/content/src/nsXULDocument.cpp index 9023bddd666..74e08ec96f1 100644 --- a/mozilla/rdf/content/src/nsXULDocument.cpp +++ b/mozilla/rdf/content/src/nsXULDocument.cpp @@ -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 select = do_QueryInterface(element, &srv); - if (NS_SUCCEEDED(srv)) { - srv = select->DoneAddingContent(); - } } } else {