bug 11312: fixed Invalidate() of entire bounds, need to use (0, 0)-based rectangle.

This commit is contained in:
beard%netscape.com 1999-08-27 04:02:09 +00:00
Родитель c577423b50
Коммит 3fadca59b0
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -711,7 +711,9 @@ NS_IMETHODIMP nsWindow::Invalidate(const nsRect &aRect, PRBool aIsSynchronous)
//-------------------------------------------------------------------------
NS_IMETHODIMP nsWindow::Invalidate(PRBool aIsSynchronous)
{
nsWindow::Invalidate(mBounds, aIsSynchronous);
nsRect area = mBounds;
area.x = area.y = 0;
nsWindow::Invalidate(area, aIsSynchronous);
return NS_OK;
}