Bug 198861 valgrind nsWindow::Resize uses unitialized value: mShown
r=biesi sr=tor git-svn-id: svn://10.0.0.236/trunk@140202 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9181be2f78
commit
091571b689
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user