- Implemented GetContentViewerContainer() in the nsDocLoaderImpl() object.

- Added charset parameters to LoadDocument(), a method defined in nsIWebShellServices
This commit is contained in:
nisheeth@netscape.com
1999-05-06 03:54:40 +00:00
parent 8771a13cdd
commit 41ef88211a
4 changed files with 96 additions and 32 deletions

View File

@@ -245,7 +245,9 @@ public:
NS_IMETHOD FocusAvailable(nsIWebShell* aFocusedWebShell, PRBool& aFocusTaken);
// nsIWebShellServices
NS_IMETHOD LoadDocument(const char* aURL);
NS_IMETHOD LoadDocument(const char* aURL,
const char* aCharset,
nsCharsetSource aSource);
NS_IMETHOD StopDocumentLoad(void);
NS_IMETHOD SetRendering(PRBool aRender);
@@ -1938,7 +1940,9 @@ nsWebShell::FocusAvailable(nsIWebShell* aFocusedWebShell, PRBool& aFocusTaken)
// Web Shell Services API
NS_IMETHODIMP
nsWebShell::LoadDocument(const char* aURL)
nsWebShell::LoadDocument(const char* aURL,
const char* aCharset,
nsCharsetSource aSource)
{
return NS_OK;
}
@@ -1946,6 +1950,7 @@ nsWebShell::LoadDocument(const char* aURL)
NS_IMETHODIMP
nsWebShell::StopDocumentLoad(void)
{
Stop();
return NS_OK;
}
@@ -2289,7 +2294,7 @@ nsWebShell::OnStartDocumentLoad(nsIDocumentLoader* loader,
nsIDocumentViewer* docViewer;
nsresult rv = NS_ERROR_FAILURE;
if (nsnull != mScriptGlobal) {
if (nsnull != mContentViewer &&
NS_OK == mContentViewer->QueryInterface(kIDocumentViewerIID, (void**)&docViewer)) {