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