mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
merge backout. a=backout
This commit is contained in:
commit
f0a88a37d6
@ -2746,18 +2746,11 @@ nsWindow::MakeFullScreen(PRBool aFullScreen)
|
||||
|
||||
UpdateNonClientMargins();
|
||||
|
||||
// Prevent window updates during the transition.
|
||||
DWORD style = GetWindowLong(mWnd, GWL_STYLE);
|
||||
SetWindowLong(mWnd, GWL_STYLE, style & ~WS_VISIBLE);
|
||||
|
||||
// Will call hide chrome, reposition window. Note this will
|
||||
// also cache dimensions for restoration, so it should only
|
||||
// be called once per fullscreen request.
|
||||
nsresult rv = nsBaseWidget::MakeFullScreen(aFullScreen);
|
||||
|
||||
style = GetWindowLong(mWnd, GWL_STYLE);
|
||||
SetWindowLong(mWnd, GWL_STYLE, style | WS_VISIBLE);
|
||||
|
||||
// Let the dom know via web shell window
|
||||
nsSizeModeEvent event(PR_TRUE, NS_SIZEMODE, this);
|
||||
event.mSizeMode = mSizeMode;
|
||||
|
Loading…
Reference in New Issue
Block a user