More nsIPresContext deCOMtamination (bug 229371). Inline getters and setters for LinkHandler, VisibleArea, and Language; change some methods that don't return any useful data to |void|; make GetContainer return an already_AddRefed. r+sr=dbaron

This commit is contained in:
bryner@brianryner.com
2004-02-01 10:09:07 +00:00
parent c4f324dde1
commit 191d92ce16
53 changed files with 423 additions and 624 deletions

View File

@@ -411,8 +411,7 @@ nsFrameLoader::EnsureDocShell()
// Bug 8065: Don't exceed some maximum depth in content frames
// (MAX_DEPTH_CONTENT_FRAMES)
PRInt32 depth = 0;
nsCOMPtr<nsISupports> parentAsSupports;
presContext->GetContainer(getter_AddRefs(parentAsSupports));
nsCOMPtr<nsISupports> parentAsSupports = presContext->GetContainer();
if (parentAsSupports) {
nsCOMPtr<nsIDocShellTreeItem> parentAsItem =
@@ -459,8 +458,7 @@ nsFrameLoader::EnsureDocShell()
// child. If it's not a web-shell then some things will not operate
// properly.
nsCOMPtr<nsISupports> container;
presContext->GetContainer(getter_AddRefs(container));
nsCOMPtr<nsISupports> container = presContext->GetContainer();
nsCOMPtr<nsIDocShellTreeNode> parentAsNode(do_QueryInterface(container));
if (parentAsNode) {