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
parent 075b078215
commit 3c55a21288

View File

@ -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;