mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
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:
parent
b2e4b2fbaf
commit
23f188782e
@ -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, ®ion);
|
||||
} else {
|
||||
// Remove clipping of child views.
|
||||
|
@ -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, ®ion);
|
||||
}
|
||||
|
||||
|
@ -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, ®ion);
|
||||
} else {
|
||||
// Remove clipping of child views.
|
||||
|
@ -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, ®ion);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user