Back out 5e76dfb1d426 (bug 826635) and 0df74b1a4543:20df426b6111 (bug 826632) for bustage
CLOSED TREE
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
#include "nsDOMJSUtils.h"
|
||||
#include "nsIInterfaceRequestorUtils.h"
|
||||
#include "nsView.h"
|
||||
#include "nsViewManager.h"
|
||||
#include "nsIViewManager.h"
|
||||
#include "nsIScriptChannel.h"
|
||||
#include "nsIOfflineCacheUpdate.h"
|
||||
#include "nsITimedChannel.h"
|
||||
@@ -3249,7 +3249,7 @@ PrintDocTree(nsIDocShellTreeItem * aParentNode, int aLevel)
|
||||
nsCOMPtr<nsIDOMWindow> domwin(doc->GetWindow());
|
||||
|
||||
nsCOMPtr<nsIWidget> widget;
|
||||
nsViewManager* vm = presShell->GetViewManager();
|
||||
nsIViewManager* vm = presShell->GetViewManager();
|
||||
if (vm) {
|
||||
vm->GetWidget(getter_AddRefs(widget));
|
||||
}
|
||||
@@ -5048,10 +5048,10 @@ nsDocShell::Repaint(bool aForce)
|
||||
nsCOMPtr<nsIPresShell> presShell =GetPresShell();
|
||||
NS_ENSURE_TRUE(presShell, NS_ERROR_FAILURE);
|
||||
|
||||
nsViewManager* viewManager = presShell->GetViewManager();
|
||||
nsIViewManager* viewManager = presShell->GetViewManager();
|
||||
NS_ENSURE_TRUE(viewManager, NS_ERROR_FAILURE);
|
||||
|
||||
viewManager->InvalidateAllViews();
|
||||
NS_ENSURE_SUCCESS(viewManager->InvalidateAllViews(), NS_ERROR_FAILURE);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -5115,7 +5115,7 @@ nsDocShell::GetVisibility(bool * aVisibility)
|
||||
return NS_OK;
|
||||
|
||||
// get the view manager
|
||||
nsViewManager* vm = presShell->GetViewManager();
|
||||
nsIViewManager* vm = presShell->GetViewManager();
|
||||
NS_ENSURE_TRUE(vm, NS_ERROR_FAILURE);
|
||||
|
||||
// get the root view
|
||||
@@ -7388,7 +7388,7 @@ nsDocShell::RestoreFromHistory()
|
||||
|
||||
nsCOMPtr<nsIPresShell> oldPresShell = GetPresShell();
|
||||
if (oldPresShell) {
|
||||
nsViewManager *vm = oldPresShell->GetViewManager();
|
||||
nsIViewManager *vm = oldPresShell->GetViewManager();
|
||||
if (vm) {
|
||||
nsView *oldRootView = vm->GetRootView();
|
||||
|
||||
@@ -7609,7 +7609,7 @@ nsDocShell::RestoreFromHistory()
|
||||
|
||||
nsCOMPtr<nsIPresShell> shell = GetPresShell();
|
||||
|
||||
nsViewManager *newVM = shell ? shell->GetViewManager() : nullptr;
|
||||
nsIViewManager *newVM = shell ? shell->GetViewManager() : nullptr;
|
||||
nsView *newRootView = newVM ? newVM->GetRootView() : nullptr;
|
||||
|
||||
// Insert the new root view at the correct location in the view tree.
|
||||
@@ -7625,7 +7625,7 @@ nsDocShell::RestoreFromHistory()
|
||||
rootViewSibling = nullptr;
|
||||
}
|
||||
if (rootViewParent && newRootView && newRootView->GetParent() != rootViewParent) {
|
||||
nsViewManager *parentVM = rootViewParent->GetViewManager();
|
||||
nsIViewManager *parentVM = rootViewParent->GetViewManager();
|
||||
if (parentVM) {
|
||||
// InsertChild(parent, child, sib, true) inserts the child after
|
||||
// sib in content order, which is before sib in view order. BUT
|
||||
|
||||
Reference in New Issue
Block a user