зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1417354 - Drop unused presshell and prescontext in nsGlobalWindowInner.cpp. r=smaug
MozReview-Commit-ID: Ok80ilFDsf --HG-- extra : rebase_source : 490e58ea922a56fe8d4c2ffeea4ea83198141bd3
This commit is contained in:
Родитель
7f1a212543
Коммит
2ae05eae09
|
@ -4793,12 +4793,6 @@ nsGlobalWindowInner::FireHashchange(const nsAString &aOldURL,
|
|||
// Get a presentation shell for use in creating the hashchange event.
|
||||
NS_ENSURE_STATE(IsCurrentInnerWindow());
|
||||
|
||||
nsIPresShell *shell = mDoc->GetShell();
|
||||
RefPtr<nsPresContext> presContext;
|
||||
if (shell) {
|
||||
presContext = shell->GetPresContext();
|
||||
}
|
||||
|
||||
HashChangeEventInit init;
|
||||
init.mBubbles = true;
|
||||
init.mCancelable = false;
|
||||
|
@ -4835,13 +4829,6 @@ nsGlobalWindowInner::DispatchSyncPopState()
|
|||
rv = mDoc->GetStateObject(getter_AddRefs(stateObj));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Obtain a presentation shell for use in creating a popstate event.
|
||||
nsIPresShell *shell = mDoc->GetShell();
|
||||
RefPtr<nsPresContext> presContext;
|
||||
if (shell) {
|
||||
presContext = shell->GetPresContext();
|
||||
}
|
||||
|
||||
bool result = true;
|
||||
AutoJSAPI jsapi;
|
||||
result = jsapi.Init(this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче