зеркало из https://github.com/mozilla/pjs.git
Bug 237426. Set clip rect *after* we've saved the old rect. r+sr=dbaron,a=asa
This commit is contained in:
Родитель
581d42f4b2
Коммит
386105c353
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче