first pass support for view-source

git-svn-id: svn://10.0.0.236/trunk@14424 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1998-11-11 11:55:32 +00:00
parent 40ea51753a
commit e507069774
54 changed files with 2518 additions and 74 deletions

View File

@@ -25,7 +25,7 @@
#include "nsIStyleSet.h"
#include "nsIDocumentObserver.h"
#include "nsHTMLAtoms.h"
#include "nsIPresShell.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIImageMap.h"
#include "nsIHTMLContent.h"
@@ -425,7 +425,8 @@ nsrefcnt nsHTMLDocument::Release()
NS_IMETHODIMP
nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
nsIContentViewerContainer* aContainer,
nsIStreamListener **aDocListener)
nsIStreamListener **aDocListener,
const char* aCommand)
{
nsresult rv;
nsIWebShell* webShell;
@@ -460,7 +461,7 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
kCParserIID,
(void **)&mParser);
if (NS_OK == rv) {
if (NS_OK == rv) {
nsIHTMLContentSink* sink;
#ifdef rickgdebug
@@ -493,7 +494,7 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
nsIDTD* theDTD=0;
NS_NewNavHTMLDTD(&theDTD);
mParser->RegisterDTD(theDTD);
mParser->SetCommand("");
mParser->SetContentSink(sink);
mParser->Parse(aURL);
}