Changed SetBounds() to not request a repaint when resizing the window

This commit is contained in:
troy 1998-06-02 02:46:31 +00:00
Родитель 18fba09482
Коммит 6a87c166bb
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -345,7 +345,9 @@ void WebWidgetImpl::SetBounds(const nsRect& aBounds)
{
NS_PRECONDITION(nsnull != mWindow, "null window");
if (nsnull != mWindow) {
mWindow->Resize(aBounds.x, aBounds.y, aBounds.width, aBounds.height, PR_TRUE);
// Don't have the widget repaint. Layout will generate repaint requests
// during reflow
mWindow->Resize(aBounds.x, aBounds.y, aBounds.width, aBounds.height, PR_FALSE);
}
}