From cfd65d2ef9a0478307cb35dc59597819833e3909 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Thu, 15 Apr 1999 20:08:49 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://10.0.0.236/trunk@27617 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsHTMLNullSink.cpp | 27 +++++++++++++++++++ .../parser/htmlparser/src/nsHTMLNullSink.cpp | 27 +++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/mozilla/htmlparser/src/nsHTMLNullSink.cpp b/mozilla/htmlparser/src/nsHTMLNullSink.cpp index 0f0dc8bb4f2..066a112c0e8 100644 --- a/mozilla/htmlparser/src/nsHTMLNullSink.cpp +++ b/mozilla/htmlparser/src/nsHTMLNullSink.cpp @@ -68,6 +68,8 @@ public: NS_IMETHOD CloseFrameset(const nsIParserNode& aNode); NS_IMETHOD DoFragment(PRBool aFlag); + NS_IMETHOD BeginContext(PRInt32 aPosition); + NS_IMETHOD EndContext(PRInt32 aPosition); protected: PRInt32 mNodeStack[100]; @@ -596,4 +598,29 @@ nsresult nsHTMLNullSink::DoFragment(PRBool aFlag) return NS_OK; } +/** + * This gets called when handling illegal contents, especially + * in dealing with tables. This method creates a new context. + * + * @update 04/04/99 harishd + * @param aPosition - The position from where the new context begins. + */ +NS_IMETHODIMP +nsHTMLNullSink::BeginContext(PRInt32 aPosition) +{ + return NS_OK; +} + +/** + * This method terminates any new context that got created by + * BeginContext and switches back to the main context. + * + * @update 04/04/99 harishd + * @param aPosition - Validates the end of a context. + */ +NS_IMETHODIMP +nsHTMLNullSink::EndContext(PRInt32 aPosition) +{ + return NS_OK; +} diff --git a/mozilla/parser/htmlparser/src/nsHTMLNullSink.cpp b/mozilla/parser/htmlparser/src/nsHTMLNullSink.cpp index 0f0dc8bb4f2..066a112c0e8 100644 --- a/mozilla/parser/htmlparser/src/nsHTMLNullSink.cpp +++ b/mozilla/parser/htmlparser/src/nsHTMLNullSink.cpp @@ -68,6 +68,8 @@ public: NS_IMETHOD CloseFrameset(const nsIParserNode& aNode); NS_IMETHOD DoFragment(PRBool aFlag); + NS_IMETHOD BeginContext(PRInt32 aPosition); + NS_IMETHOD EndContext(PRInt32 aPosition); protected: PRInt32 mNodeStack[100]; @@ -596,4 +598,29 @@ nsresult nsHTMLNullSink::DoFragment(PRBool aFlag) return NS_OK; } +/** + * This gets called when handling illegal contents, especially + * in dealing with tables. This method creates a new context. + * + * @update 04/04/99 harishd + * @param aPosition - The position from where the new context begins. + */ +NS_IMETHODIMP +nsHTMLNullSink::BeginContext(PRInt32 aPosition) +{ + return NS_OK; +} + +/** + * This method terminates any new context that got created by + * BeginContext and switches back to the main context. + * + * @update 04/04/99 harishd + * @param aPosition - Validates the end of a context. + */ +NS_IMETHODIMP +nsHTMLNullSink::EndContext(PRInt32 aPosition) +{ + return NS_OK; +}