зеркало из https://github.com/mozilla/pjs.git
Bug 198861 valgrind nsWindow::Resize uses unitialized value: mShown
r=biesi sr=tor
This commit is contained in:
Родитель
663581cf1d
Коммит
81c8475d21
|
@ -210,7 +210,6 @@ protected:
|
|||
PRBool WidgetVisible (nsRect &aBounds);
|
||||
|
||||
PRBool mIsShown;
|
||||
PRBool mShown;
|
||||
int mVisibility; // this is an int because that's the way X likes it
|
||||
PRUint32 mPreferredWidth;
|
||||
PRUint32 mPreferredHeight;
|
||||
|
|
|
@ -454,7 +454,7 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth,
|
|||
if (mIsTooSmall)
|
||||
{
|
||||
// if we are not shown, we don't want to force a show here, so check and see if Show(TRUE) has been called
|
||||
NeedToShow = mShown;
|
||||
NeedToShow = mIsShown;
|
||||
mIsTooSmall = PR_FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче