Wallpaper for bug 311223 pending a fix of the underlying tree bug. r+sr=roc

This commit is contained in:
bzbarsky%mit.edu 2005-10-08 02:32:03 +00:00
Родитель 9eda8c3d30
Коммит 3de1cca9d8
1 изменённых файлов: 1 добавлений и 5 удалений

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

@ -2862,11 +2862,7 @@ NS_IMETHODIMP nsViewManager::ResizeView(nsIView *aView, const nsRect &aRect, PRB
nsRect oldDimensions;
view->GetDimensions(oldDimensions);
// Don't use nsRect's operator== here, since it returns true when
// both rects are empty even if they have different widths and we
// have cases where that sort of thing matters to us.
if (oldDimensions.TopLeft() != aRect.TopLeft() ||
oldDimensions.Size() != aRect.Size()) {
if (oldDimensions != aRect) {
nsView* parentView = view->GetParent();
if (parentView == nsnull)
parentView = view;