From f25c5cb072b385b737559c3ecae4d4b11a55d5e5 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Sun, 14 Nov 1999 00:34:15 +0000 Subject: [PATCH] Added notification to the select in CreateElemenet to tell it it is complete. r=vidur(sort iof, we talked about this change on friday) bug 18784 --- content/html/document/src/nsHTMLDocument.cpp | 7 +++++++ layout/html/document/src/nsHTMLDocument.cpp | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/content/html/document/src/nsHTMLDocument.cpp b/content/html/document/src/nsHTMLDocument.cpp index da28cddb51d..6bc3d35ce11 100644 --- a/content/html/document/src/nsHTMLDocument.cpp +++ b/content/html/document/src/nsHTMLDocument.cpp @@ -78,6 +78,7 @@ #include "nsIHTTPChannel.h" #include "nsIFileChannel.h" #include "nsIEventListenerManager.h" +#include "nsISelectElement.h" #include "nsICharsetDetector.h" #include "nsICharsetDetectionAdaptor.h" @@ -1083,6 +1084,12 @@ nsHTMLDocument::CreateElement(const nsString& aTagName, if (NS_SUCCEEDED(rv)) { rv = content->QueryInterface(kIDOMElementIID, (void**)aReturn); } + + nsresult result; + nsCOMPtr select = do_QueryInterface(content, &result); + if (NS_SUCCEEDED(result)) { + result = select->DoneAddingContent(); + } return rv; } diff --git a/layout/html/document/src/nsHTMLDocument.cpp b/layout/html/document/src/nsHTMLDocument.cpp index da28cddb51d..6bc3d35ce11 100644 --- a/layout/html/document/src/nsHTMLDocument.cpp +++ b/layout/html/document/src/nsHTMLDocument.cpp @@ -78,6 +78,7 @@ #include "nsIHTTPChannel.h" #include "nsIFileChannel.h" #include "nsIEventListenerManager.h" +#include "nsISelectElement.h" #include "nsICharsetDetector.h" #include "nsICharsetDetectionAdaptor.h" @@ -1083,6 +1084,12 @@ nsHTMLDocument::CreateElement(const nsString& aTagName, if (NS_SUCCEEDED(rv)) { rv = content->QueryInterface(kIDOMElementIID, (void**)aReturn); } + + nsresult result; + nsCOMPtr select = do_QueryInterface(content, &result); + if (NS_SUCCEEDED(result)) { + result = select->DoneAddingContent(); + } return rv; }