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
This commit is contained in:
rods%netscape.com 1999-11-14 00:34:15 +00:00
Родитель b68d17371a
Коммит f25c5cb072
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -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<nsISelectElement> select = do_QueryInterface(content, &result);
if (NS_SUCCEEDED(result)) {
result = select->DoneAddingContent();
}
return rv;
}

Просмотреть файл

@ -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<nsISelectElement> select = do_QueryInterface(content, &result);
if (NS_SUCCEEDED(result)) {
result = select->DoneAddingContent();
}
return rv;
}