зеркало из https://github.com/mozilla/pjs.git
fixing leaks! r=scc bug=34896
This commit is contained in:
Родитель
ffecdb9ecd
Коммит
08db683df0
|
@ -770,6 +770,15 @@ nsXMLDocument::ImportNode(nsIDOMNode* aImportedNode,
|
|||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::CreateAttributeNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMAttr** aReturn)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::CreateElementNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
|
@ -785,17 +794,19 @@ nsXMLDocument::CreateElementNS(const nsString& aNamespaceURI,
|
|||
PRInt32 namespaceID;
|
||||
nodeInfo->GetNamespaceID(namespaceID);
|
||||
|
||||
nsIContent* content;
|
||||
nsCOMPtr<nsIContent> content;
|
||||
if (namespaceID == kNameSpaceID_HTML) {
|
||||
nsIHTMLContent* htmlContent;
|
||||
/* nsCOMPtr<nsIHTMLContent> htmlContent;
|
||||
|
||||
rv = NS_CreateHTMLElement(&htmlContent, nodeInfo);
|
||||
content = (nsIContent*)htmlContent;
|
||||
rv = NS_CreateHTMLElement(getter_AddRefs(htmlContent), nodeInfo);
|
||||
content = do_QueryInterface(htmlContent);
|
||||
*/
|
||||
rv = NS_ERROR_NOT_IMPLEMENTED; //do we want html elements from here??
|
||||
}
|
||||
else {
|
||||
nsIXMLContent* xmlContent;
|
||||
rv = NS_NewXMLElement(&xmlContent, nodeInfo);
|
||||
content = NS_STATIC_CAST(nsIXMLContent *, xmlContent);
|
||||
nsCOMPtr<nsIXMLContent> xmlContent;
|
||||
rv = NS_NewXMLElement(getter_AddRefs(xmlContent), nodeInfo);
|
||||
content = do_QueryInterface(xmlContent);
|
||||
}
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
@ -805,15 +816,6 @@ nsXMLDocument::CreateElementNS(const nsString& aNamespaceURI,
|
|||
return content->QueryInterface(kIDOMElementIID, (void**)aReturn);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::CreateAttributeNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMAttr** aReturn)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::GetElementById(const nsString& aElementId,
|
||||
nsIDOMElement** aReturn)
|
||||
|
|
|
@ -73,8 +73,8 @@ public:
|
|||
PRBool aDeep,
|
||||
nsIDOMNode** aReturn);
|
||||
NS_IMETHOD CreateElementNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMElement** aReturn);
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMElement** aReturn);
|
||||
NS_IMETHOD CreateAttributeNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMAttr** aReturn);
|
||||
|
|
|
@ -770,6 +770,15 @@ nsXMLDocument::ImportNode(nsIDOMNode* aImportedNode,
|
|||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::CreateAttributeNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMAttr** aReturn)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::CreateElementNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
|
@ -785,17 +794,19 @@ nsXMLDocument::CreateElementNS(const nsString& aNamespaceURI,
|
|||
PRInt32 namespaceID;
|
||||
nodeInfo->GetNamespaceID(namespaceID);
|
||||
|
||||
nsIContent* content;
|
||||
nsCOMPtr<nsIContent> content;
|
||||
if (namespaceID == kNameSpaceID_HTML) {
|
||||
nsIHTMLContent* htmlContent;
|
||||
/* nsCOMPtr<nsIHTMLContent> htmlContent;
|
||||
|
||||
rv = NS_CreateHTMLElement(&htmlContent, nodeInfo);
|
||||
content = (nsIContent*)htmlContent;
|
||||
rv = NS_CreateHTMLElement(getter_AddRefs(htmlContent), nodeInfo);
|
||||
content = do_QueryInterface(htmlContent);
|
||||
*/
|
||||
rv = NS_ERROR_NOT_IMPLEMENTED; //do we want html elements from here??
|
||||
}
|
||||
else {
|
||||
nsIXMLContent* xmlContent;
|
||||
rv = NS_NewXMLElement(&xmlContent, nodeInfo);
|
||||
content = NS_STATIC_CAST(nsIXMLContent *, xmlContent);
|
||||
nsCOMPtr<nsIXMLContent> xmlContent;
|
||||
rv = NS_NewXMLElement(getter_AddRefs(xmlContent), nodeInfo);
|
||||
content = do_QueryInterface(xmlContent);
|
||||
}
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
@ -805,15 +816,6 @@ nsXMLDocument::CreateElementNS(const nsString& aNamespaceURI,
|
|||
return content->QueryInterface(kIDOMElementIID, (void**)aReturn);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::CreateAttributeNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMAttr** aReturn)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXMLDocument::GetElementById(const nsString& aElementId,
|
||||
nsIDOMElement** aReturn)
|
||||
|
|
|
@ -73,8 +73,8 @@ public:
|
|||
PRBool aDeep,
|
||||
nsIDOMNode** aReturn);
|
||||
NS_IMETHOD CreateElementNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMElement** aReturn);
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMElement** aReturn);
|
||||
NS_IMETHOD CreateAttributeNS(const nsString& aNamespaceURI,
|
||||
const nsString& aQualifiedName,
|
||||
nsIDOMAttr** aReturn);
|
||||
|
|
Загрузка…
Ссылка в новой задаче