mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 237426. Set clip rect *after* we've saved the old rect. r+sr=dbaron,a=asa
This commit is contained in:
parent
1ec337730c
commit
0e5a4236d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user