mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 735781 - Make sure nsScreen don't call RemoveObserver twice in a row. r=jlebar
This commit is contained in:
parent
e545a790d6
commit
675be045de
@ -1313,7 +1313,6 @@ nsGlobalWindow::FreeInnerObjects()
|
||||
}
|
||||
|
||||
if (mScreen) {
|
||||
mScreen->Invalidate();
|
||||
mScreen = nsnull;
|
||||
}
|
||||
|
||||
|
@ -84,12 +84,6 @@ nsScreen::Initialize()
|
||||
"dom.screenBrightnessProperty.enabled");
|
||||
}
|
||||
|
||||
void
|
||||
nsScreen::Invalidate()
|
||||
{
|
||||
hal::UnregisterScreenOrientationObserver(this);
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<nsScreen>
|
||||
nsScreen::Create(nsPIDOMWindow* aWindow)
|
||||
{
|
||||
@ -120,7 +114,7 @@ nsScreen::nsScreen()
|
||||
|
||||
nsScreen::~nsScreen()
|
||||
{
|
||||
Invalidate();
|
||||
hal::UnregisterScreenOrientationObserver(this);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user