Bug 164625. Remove references to nsRectFast, they're not needed and this shouldn't be used outside of the nsRegion code. Patch by Dainis_Jonitis@swh-t.lv. r=roc,sr=kin

This commit is contained in:
roc+%cs.cmu.edu 2002-09-03 21:53:22 +00:00
parent b2e4b2fbaf
commit 23f188782e
5 changed files with 8 additions and 8 deletions

View File

@ -728,7 +728,7 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
// Set clipping of child views.
nsRegion region;
region.Copy(nsRectFast(clipRect));
region.Copy(clipRect);
vm->SetViewChildClipRegion(aView, &region);
} else {
// Remove clipping of child views.

View File

@ -233,7 +233,7 @@ NS_IMETHODIMP nsPageFrame::Reflow(nsIPresContext* aPresContext,
nsCOMPtr<nsIViewManager> vm;
view->GetViewManager(*getter_AddRefs(vm));
nsRegion region;
region.Copy(nsRectFast(0, 0, aDesiredSize.width, aDesiredSize.height));
region.Copy(nsRect(0, 0, aDesiredSize.width, aDesiredSize.height));
vm->SetViewChildClipRegion(view, &region);
}

View File

@ -728,7 +728,7 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
// Set clipping of child views.
nsRegion region;
region.Copy(nsRectFast(clipRect));
region.Copy(clipRect);
vm->SetViewChildClipRegion(aView, &region);
} else {
// Remove clipping of child views.

View File

@ -233,7 +233,7 @@ NS_IMETHODIMP nsPageFrame::Reflow(nsIPresContext* aPresContext,
nsCOMPtr<nsIViewManager> vm;
view->GetViewManager(*getter_AddRefs(vm));
nsRegion region;
region.Copy(nsRectFast(0, 0, aDesiredSize.width, aDesiredSize.height));
region.Copy(nsRect(0, 0, aDesiredSize.width, aDesiredSize.height));
vm->SetViewChildClipRegion(view, &region);
}

View File

@ -1055,7 +1055,7 @@ void nsViewManager::AddCoveringWidgetsToOpaqueRegion(nsRegion &aRgn, nsIDeviceCo
// system of aRootView (maybe it's not a descendant
// view of aRootView?); if so, don't use it
if (viewParent) {
aRgn.Or(aRgn, nsRectFast(bounds));
aRgn.Or(aRgn, bounds);
}
}
}
@ -3585,7 +3585,7 @@ nsresult nsViewManager::OptimizeDisplayList(const nsRect& aDamageRect, nsRect& a
DisplayListElement2* element = NS_STATIC_CAST(DisplayListElement2*, mDisplayList.ElementAt(i));
if (element->mFlags & VIEW_RENDERED) {
nsRegion tmpRgn;
tmpRgn.Copy(nsRectFast(element->mBounds));
tmpRgn.Copy(element->mBounds);
tmpRgn.Sub(tmpRgn, aOpaqueRegion);
if (tmpRgn.IsEmpty()) {
@ -3595,14 +3595,14 @@ nsresult nsViewManager::OptimizeDisplayList(const nsRect& aDamageRect, nsRect& a
// a view is opaque if it is neither transparent nor transluscent
if (!(element->mFlags & (VIEW_TRANSPARENT | VIEW_TRANSLUCENT))) {
aOpaqueRegion.Or(aOpaqueRegion, nsRectFast(element->mBounds));
aOpaqueRegion.Or(aOpaqueRegion, element->mBounds);
}
}
}
}
nsRegion tmpRgn;
tmpRgn.Copy(nsRectFast(aDamageRect));
tmpRgn.Copy(aDamageRect);
tmpRgn.Sub(tmpRgn, aOpaqueRegion);
tmpRgn.GetBoundRect(aFinalTransparentRect);