Changed Refresh() to use the dimensions of the widget associated with

theview being repainted, rather than the dimensions of the root widget
This commit is contained in:
troy%netscape.com 1998-10-29 19:47:19 +00:00
parent d029154680
commit 697d10d512

View File

@ -293,7 +293,11 @@ void nsViewManager :: Refresh(nsIView *aView, nsIRenderingContext *aContext, nsI
if (aUpdateFlags & NS_VMREFRESH_DOUBLE_BUFFER)
{
mRootWindow->GetBounds(wrect);
nsIWidget* widget;
aView->GetWidget(widget);
widget->GetBounds(wrect);
wrect.x = wrect.y = 0;
NS_RELEASE(widget);
ds = GetDrawingSurface(*localcx, wrect);
localcx->SelectOffScreenDrawingSurface(ds);
}