mshtml: Added COMMENT_NODE implementation in nsnode_to_nsstring_rec.

This commit is contained in:
Jacek Caban 2007-06-10 11:54:51 +02:00 committed by Alexandre Julliard
parent 21d61dae88
commit 9e3021746c
2 changed files with 16 additions and 1 deletions

View File

@ -513,6 +513,12 @@ static void nsnode_to_nsstring_rec(nsIContentSerializer *serializer, nsIDOMNode
nsIDOMText_Release(nstext);
break;
}
case COMMENT_NODE: {
nsIDOMComment *nscomment;
nsres = nsIDOMNode_QueryInterface(nsnode, &IID_nsIDOMComment, (void**)&nscomment);
nsres = nsIContentSerializer_AppendComment(serializer, nscomment, 0, -1, str);
break;
}
case DOCUMENT_NODE: {
nsIDOMDocument *nsdoc;
nsIDOMNode_QueryInterface(nsnode, &IID_nsIDOMDocument, (void**)&nsdoc);

View File

@ -99,7 +99,6 @@ typedef nsISupports nsIDOMNamedNodeMap;
typedef nsISupports nsIDOMAttr;
typedef nsISupports nsIDOMDocumentType;
typedef nsISupports nsIDOMDOMImplementation;
typedef nsISupports nsIDOMComment;
typedef nsISupports nsIDOMCDATASection;
typedef nsISupports nsIDOMProcessingInstruction;
typedef nsISupports nsIDOMEntityReference;
@ -592,6 +591,15 @@ interface nsIDOMText : nsIDOMCharacterData
nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
}
[
object,
uuid(a6cf9073-15b3-11d2-932e-00805f8add32)
/* FROZEN */
]
interface nsIDOMComment : nsIDOMCharacterData
{
}
[
object,
uuid(a6cf9076-15b3-11d2-932e-00805f8add32)
@ -1152,6 +1160,7 @@ interface nsIWebBrowserPrint : nsISupports
[
object,
uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8)
/* NOT_FROZEN */
]
interface nsIScrollable : nsISupports
{