diff --git a/content/base/public/nsITextContent.h b/content/base/public/nsITextContent.h index ae2bc6449e2f..41fabc50d022 100644 --- a/content/base/public/nsITextContent.h +++ b/content/base/public/nsITextContent.h @@ -41,6 +41,16 @@ public: NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult, PRInt32& aNumFragmentsResult) = 0; + /** + * Get the length of the text content. + */ + NS_IMETHOD GetTextLength(PRInt32* aLengthResult) = 0; + + /** + * Make a copy of the text content in aResult. + */ + NS_IMETHOD CopyText(nsString& aResult) = 0; + /** * Set the text to the given value. If aNotify is PR_TRUE then * the document is notified of the content change. diff --git a/layout/base/public/nsITextContent.h b/layout/base/public/nsITextContent.h index ae2bc6449e2f..41fabc50d022 100644 --- a/layout/base/public/nsITextContent.h +++ b/layout/base/public/nsITextContent.h @@ -41,6 +41,16 @@ public: NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult, PRInt32& aNumFragmentsResult) = 0; + /** + * Get the length of the text content. + */ + NS_IMETHOD GetTextLength(PRInt32* aLengthResult) = 0; + + /** + * Make a copy of the text content in aResult. + */ + NS_IMETHOD CopyText(nsString& aResult) = 0; + /** * Set the text to the given value. If aNotify is PR_TRUE then * the document is notified of the content change.