Wallpaper for bug 311223 pending a fix of the underlying tree bug. r+sr=roc
This commit is contained in:
Родитель
9eda8c3d30
Коммит
3de1cca9d8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче