mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
d029154680
commit
697d10d512
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user