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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user