This commit is contained in:
Cameron Kaiser 2017-12-12 06:34:42 -08:00
parent dfdcae28ae
commit 2e269c0fdb
2 changed files with 0 additions and 20 deletions

View File

@ -383,10 +383,6 @@ TabParent::AddWindowListeners()
this, false, false); this, false, false);
} }
} }
if (nsIPresShell* shell = mFrameElement->OwnerDoc()->GetShell()) {
mPresShellWithRefreshListener = shell;
shell->AddPostRefreshObserver(this);
}
} }
} }
@ -401,18 +397,6 @@ TabParent::RemoveWindowListeners()
this, false); this, false);
} }
} }
if (mPresShellWithRefreshListener) {
mPresShellWithRefreshListener->RemovePostRefreshObserver(this);
mPresShellWithRefreshListener = nullptr;
}
}
void
TabParent::DidRefresh()
{
if (mChromeOffset != -GetChildProcessOffset()) {
UpdatePosition();
}
} }
void void

View File

@ -85,7 +85,6 @@ class TabParent final : public PBrowserParent
, public nsISecureBrowserUI , public nsISecureBrowserUI
, public nsSupportsWeakReference , public nsSupportsWeakReference
, public TabContext , public TabContext
, public nsAPostRefreshObserver
, public nsIWebBrowserPersistable , public nsIWebBrowserPersistable
{ {
typedef mozilla::dom::ClonedMessageData ClonedMessageData; typedef mozilla::dom::ClonedMessageData ClonedMessageData;
@ -145,7 +144,6 @@ public:
void RemoveWindowListeners(); void RemoveWindowListeners();
void AddWindowListeners(); void AddWindowListeners();
void DidRefresh() override;
virtual bool RecvMoveFocus(const bool& aForward, virtual bool RecvMoveFocus(const bool& aForward,
const bool& aForDocumentNavigation) override; const bool& aForDocumentNavigation) override;
@ -628,8 +626,6 @@ private:
// cursor. This happens whenever the cursor is in the tab's region. // cursor. This happens whenever the cursor is in the tab's region.
bool mTabSetsCursor; bool mTabSetsCursor;
RefPtr<nsIPresShell> mPresShellWithRefreshListener;
bool mHasContentOpener; bool mHasContentOpener;
DebugOnly<int32_t> mActiveSupressDisplayportCount; DebugOnly<int32_t> mActiveSupressDisplayportCount;