mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 703307 - Fix blackscreen in gonk, r=cjones
This commit is contained in:
parent
fec7797d9c
commit
70b12356c0
@ -143,13 +143,15 @@ nsWindow::Destroy(void)
|
||||
NS_IMETHODIMP
|
||||
nsWindow::Show(bool aState)
|
||||
{
|
||||
if (!IS_TOPLEVEL())
|
||||
if (mWindowType == eWindowType_invisible)
|
||||
return NS_OK;
|
||||
|
||||
mVisible = aState;
|
||||
if (!IS_TOPLEVEL())
|
||||
return mParent ? mParent->Show(aState) : NS_OK;
|
||||
|
||||
if (aState)
|
||||
BringToTop();
|
||||
else
|
||||
mVisible = false;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -237,6 +239,12 @@ NS_IMETHODIMP
|
||||
nsWindow::Invalidate(const nsIntRect &aRect,
|
||||
bool aIsSynchronous)
|
||||
{
|
||||
nsWindow *parent = mParent;
|
||||
while (parent && parent != sTopWindows[0])
|
||||
parent = parent->mParent;
|
||||
if (parent != sTopWindows[0])
|
||||
return NS_OK;
|
||||
|
||||
gWindowToRedraw = this;
|
||||
gDrawRequest = true;
|
||||
mozilla::NotifyEvent();
|
||||
|
Loading…
Reference in New Issue
Block a user