fixed a flicker when the control is deleted
git-svn-id: svn://10.0.0.236/trunk@29396 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -77,6 +77,7 @@ nsMacControl::~nsMacControl()
|
||||
{
|
||||
if (mControl)
|
||||
{
|
||||
Show(PR_FALSE);
|
||||
::DisposeControl(mControl);
|
||||
mControl = nsnull;
|
||||
}
|
||||
@@ -142,16 +143,6 @@ PRBool nsMacControl::OnPaint(nsPaintEvent &aEvent)
|
||||
::SetControlVisibility(mControl, isVisible, false);
|
||||
::DrawOneControl(mControl);
|
||||
::ValidRect(&(*mControl)->contrlRect);
|
||||
|
||||
#if 0
|
||||
RGBColor rgbRed = {65535, 0, 0};
|
||||
::RGBForeColor(&rgbRed);
|
||||
Rect macRect;
|
||||
nsRectToMacRect(mBounds, macRect);
|
||||
::OffsetRect(&macRect, -mBounds.x, -mBounds.y);
|
||||
::InsetRect(&macRect, 1, 1);
|
||||
::FrameRect(&macRect);
|
||||
#endif
|
||||
}
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user