Bug 237426. Set clip rect *after* we've saved the old rect. r+sr=dbaron,a=asa

This commit is contained in:
roc+%cs.cmu.edu 2004-03-24 02:21:19 +00:00
parent 1ec337730c
commit 0e5a4236d4

View File

@ -2658,12 +2658,12 @@ NS_IMETHODIMP nsViewManager::SetViewChildClipRegion(nsIView *aView, const nsRegi
&& (!newClipRect || *newClipRect == *oldClipRect)) {
return NS_OK;
}
// Update the view properties
view->SetClipChildrenToRect(newClipRect);
nsRect oldClipRectStorage =
oldClipRect ? *oldClipRect : view->GetDimensions();
// Update the view properties
view->SetClipChildrenToRect(newClipRect);
if (IsViewInserted(view)) {
// Invalidate changed areas
// Paint (new - old) in the current view