зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b68d17371a
Коммит
f25c5cb072
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче