bug 27180, make nsIWidget::Resize() consistently invalidate on Mac, Windows and Linux. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@60930 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2449,6 +2449,9 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
||||
if (nNeedToShow)
|
||||
Show(PR_TRUE);
|
||||
|
||||
if (aRepaint)
|
||||
Invalidate(PR_FALSE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1182,6 +1182,10 @@ NS_METHOD nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
||||
|
||||
NS_IF_RELEASE(par);
|
||||
}
|
||||
|
||||
if (aRepaint)
|
||||
Invalidate(PR_FALSE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -1231,6 +1235,10 @@ NS_METHOD nsWindow::Resize(PRInt32 aX,
|
||||
|
||||
NS_IF_RELEASE(par);
|
||||
}
|
||||
|
||||
if (aRepaint)
|
||||
Invalidate(PR_FALSE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user