diff --git a/content/base/public/nsIContentSerializer.h b/content/base/public/nsIContentSerializer.h index 67b569829e5..08a72080b1c 100644 --- a/content/base/public/nsIContentSerializer.h +++ b/content/base/public/nsIContentSerializer.h @@ -47,16 +47,20 @@ class nsIContentSerializer : public nsISupports { NS_IMETHOD Init(PRUint32 flags, PRUint32 aWrapColumn) = 0; - NS_IMETHOD AppendText(nsIDOMText* aText, nsAWritableString& aStr) = 0; + NS_IMETHOD AppendText(nsIDOMText* aText, PRInt32 aStartOffset, + PRInt32 aEndOffset, nsAWritableString& aStr) = 0; NS_IMETHOD AppendCDATASection(nsIDOMCDATASection* aCDATASection, + PRInt32 aStartOffset, PRInt32 aEndOffset, nsAWritableString& aStr) = 0; NS_IMETHOD AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, + PRInt32 aStartOffset, + PRInt32 aEndOffset, nsAWritableString& aStr) = 0; - NS_IMETHOD AppendComment(nsIDOMComment* aComment, - nsAWritableString& aStr) = 0; + NS_IMETHOD AppendComment(nsIDOMComment* aComment, PRInt32 aStartOffset, + PRInt32 aEndOffset, nsAWritableString& aStr) = 0; NS_IMETHOD AppendDoctype(nsIDOMDocumentType *aDoctype, nsAWritableString& aStr) = 0; diff --git a/layout/base/public/nsIContentSerializer.h b/layout/base/public/nsIContentSerializer.h index 67b569829e5..08a72080b1c 100644 --- a/layout/base/public/nsIContentSerializer.h +++ b/layout/base/public/nsIContentSerializer.h @@ -47,16 +47,20 @@ class nsIContentSerializer : public nsISupports { NS_IMETHOD Init(PRUint32 flags, PRUint32 aWrapColumn) = 0; - NS_IMETHOD AppendText(nsIDOMText* aText, nsAWritableString& aStr) = 0; + NS_IMETHOD AppendText(nsIDOMText* aText, PRInt32 aStartOffset, + PRInt32 aEndOffset, nsAWritableString& aStr) = 0; NS_IMETHOD AppendCDATASection(nsIDOMCDATASection* aCDATASection, + PRInt32 aStartOffset, PRInt32 aEndOffset, nsAWritableString& aStr) = 0; NS_IMETHOD AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, + PRInt32 aStartOffset, + PRInt32 aEndOffset, nsAWritableString& aStr) = 0; - NS_IMETHOD AppendComment(nsIDOMComment* aComment, - nsAWritableString& aStr) = 0; + NS_IMETHOD AppendComment(nsIDOMComment* aComment, PRInt32 aStartOffset, + PRInt32 aEndOffset, nsAWritableString& aStr) = 0; NS_IMETHOD AppendDoctype(nsIDOMDocumentType *aDoctype, nsAWritableString& aStr) = 0;