From b6ade313b848af613623bd717ba011265e4c92f3 Mon Sep 17 00:00:00 2001 From: "jst%netscape.com" Date: Sun, 10 Sep 2000 00:09:14 +0000 Subject: [PATCH] Adding character offsets to various methods. Not part of the build. --- content/base/public/nsIContentSerializer.h | 10 +++++++--- layout/base/public/nsIContentSerializer.h | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) 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;