Backed out changeset 6798fd30a785 (bug 1126479)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 15 Aug 2017 18:30:03 +0200
changeset 374804 bec2a9eac2d9c7ec52543e5b77a6ee38c3f6879f
parent 374803 337a6416a05bc3a9fac980eaa54084b78cd639b6
child 374805 78e49684354331b02d3e425d2afcd757559bd7db
push id93770
push userarchaeopteryx@coole-files.de
push dateTue, 15 Aug 2017 16:31:29 +0000
treeherdermozilla-inbound@4af3a98934c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1126479
milestone57.0a1
backs out6798fd30a785cb02358adc83227c11b6490effde
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 6798fd30a785 (bug 1126479)
widget/android/nsWindow.cpp
--- a/widget/android/nsWindow.cpp
+++ b/widget/android/nsWindow.cpp
@@ -1776,22 +1776,16 @@ void
 nsWindow::SetZIndex(int32_t aZIndex)
 {
     ALOG("nsWindow[%p]::SetZIndex %d ignored", (void*)this, aZIndex);
 }
 
 void
 nsWindow::SetSizeMode(nsSizeMode aMode)
 {
-    if (aMode == mSizeMode) {
-        return;
-    }
-
-    nsBaseWidget::SetSizeMode(aMode);
-
     switch (aMode) {
         case nsSizeMode_Minimized:
             GeckoAppShell::MoveTaskToBack();
             break;
         case nsSizeMode_Fullscreen:
             MakeFullScreen(true);
             break;
         default:
@@ -1931,18 +1925,16 @@ nsWindow::MakeFullScreen(bool aFullScree
     }
 
     mIsFullScreen = aFullScreen;
     mAndroidView->mEventDispatcher->Dispatch(aFullScreen ?
             u"GeckoView:FullScreenEnter" : u"GeckoView:FullScreenExit");
 
     nsIWidgetListener* listener = GetWidgetListener();
     if (listener) {
-        mSizeMode = mIsFullScreen ? nsSizeMode_Fullscreen : nsSizeMode_Normal;
-        listener->SizeModeChanged(mSizeMode);
         listener->FullscreenChanged(mIsFullScreen);
     }
     return NS_OK;
 }
 
 mozilla::layers::LayerManager*
 nsWindow::GetLayerManager(PLayerTransactionChild*, LayersBackend, LayerManagerPersistence)
 {