Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.
Additonally, "shell" is unclear ("docshell" vs. "presshell"). Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.
Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.
Differential Revision: https://phabricator.services.mozilla.com/D25338
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "mozilla/Logging.h"
|
||||
#include "mozilla/MediaFeatureChange.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/PresShell.h"
|
||||
#include "mozilla/ResultExtensions.h"
|
||||
#include "mozilla/ScrollTypes.h"
|
||||
#include "mozilla/Services.h"
|
||||
@@ -7878,8 +7879,9 @@ nsresult nsDocShell::RestoreFromHistory() {
|
||||
} else {
|
||||
rootViewParent = nullptr;
|
||||
}
|
||||
if (sibling && sibling->GetShell() && sibling->GetShell()->GetViewManager()) {
|
||||
rootViewSibling = sibling->GetShell()->GetViewManager()->GetRootView();
|
||||
if (sibling && sibling->GetPresShell() &&
|
||||
sibling->GetPresShell()->GetViewManager()) {
|
||||
rootViewSibling = sibling->GetPresShell()->GetViewManager()->GetRootView();
|
||||
} else {
|
||||
rootViewSibling = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user