Fix Windows regression (view for paints can vary across platforms). b=227361 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2004-10-19 22:04:47 +00:00
Родитель 92c70b57d7
Коммит 206bc914fa
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -1857,9 +1857,8 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS
if (mRefreshEnabled) {
// If an ancestor widget was hidden and then shown, we could
// have a delayed resize to handle.
if (view == mRootView &&
mDelayedResize != nsSize(NSCOORD_NONE, NSCOORD_NONE) &&
IsViewVisible(view)) {
if (mDelayedResize != nsSize(NSCOORD_NONE, NSCOORD_NONE) &&
IsViewVisible(mRootView)) {
DoSetWindowDimensions(mDelayedResize.width, mDelayedResize.height);
mDelayedResize.SizeTo(NSCOORD_NONE, NSCOORD_NONE);