зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d029154680
Коммит
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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче