b=408284 no need to apply transparency bitmap on each show r=roc

--HG--
extra : rebase_source : 5f75d84bbf2ae142f85287da0b1998219fe4585e
This commit is contained in:
Karl Tomlinson 2012-10-03 11:36:08 +13:00
parent 8cbe6991f8
commit 552b3ebfca

View File

@ -3851,21 +3851,9 @@ nsWindow::NativeResize(int32_t aX, int32_t aY,
}
void
nsWindow::NativeShow (bool aAction)
nsWindow::NativeShow(bool aAction)
{
if (aAction) {
// GTK wants us to set the window mask before we show the window
// for the first time, or setting the mask later won't work.
// GTK also wants us to NOT set the window mask if we're not really
// going to need it, because GTK won't let us unset the mask properly
// later.
// So, we delay setting the mask until the last moment: when the window
// is shown.
// XXX that may or may not be true for GTK+ 2.x
if (mTransparencyBitmap) {
ApplyTransparencyBitmap();
}
// unset our flag now that our window has been shown
mNeedsShow = false;