nsHTMLDocument now uses the nsIBaseWindow interface off the WebShell object to do positioning stuff instead of nsIWebShell interface.

git-svn-id: svn://10.0.0.236/trunk@54496 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
1999-11-27 03:11:10 +00:00
parent 50834581e0
commit b37b8cb748
2 changed files with 12 additions and 12 deletions

View File

@@ -53,6 +53,7 @@
#include "nsIContentViewer.h"
#include "nsIMarkupDocumentViewer.h"
#include "nsIWebShell.h"
#include "nsIBaseWindow.h"
#include "nsIWebShellServices.h"
#include "nsIDocumentLoader.h"
#include "CNavDTD.h"
@@ -695,14 +696,13 @@ NS_IMETHODIMP nsHTMLDocument::SetTitle(const nsString& aTitle)
nsIPresShell* shell = (nsIPresShell*) mPresShells.ElementAt(i);
nsCOMPtr<nsIPresContext> cx;
shell->GetPresContext(getter_AddRefs(cx));
nsISupports* container;
if (NS_OK == cx->GetContainer(&container)) {
if (nsnull != container) {
nsCOMPtr<nsIWebShell> webShell = do_QueryInterface(container);
if (webShell) {
nsCOMPtr<nsISupports> container;
if (NS_OK == cx->GetContainer(getter_AddRefs(container))) {
if (container) {
nsCOMPtr<nsIBaseWindow> webShell(do_QueryInterface(container));
if(webShell) {
webShell->SetTitle(aTitle.GetUnicode());
}
NS_RELEASE(container);
}
}
}