зеркало из https://github.com/mozilla/pjs.git
bug #17574: fixed ResizeView() to generate an update for the bounding box of old and new bounds of the view, instead of the entire parent view (duh!). this can be optimized further by doing separate updates if old and new aren't overlapping. r=kin
This commit is contained in:
Родитель
e2b9d47819
Коммит
53edb43c8a
|
@ -1888,7 +1888,7 @@ NS_IMETHODIMP nsViewManager::ResizeView(nsIView *aView, nscoord width, nscoord h
|
|||
// resize the view.
|
||||
aView->SetDimensions(width, height);
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
// refresh the bounding box of old and new areas.
|
||||
nscoord maxWidth = (oldWidth < width ? width : oldWidth);
|
||||
nscoord maxHeight = (oldHeight < height ? height : oldHeight);
|
||||
|
|
Загрузка…
Ссылка в новой задаче