mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Fixed DamageRepairFrame() to correctly handle the case where the
target frame has a view
This commit is contained in:
parent
e4bd0c3b01
commit
e66cb75bcb
@ -322,13 +322,16 @@ nsFrameImageLoader::DamageRepairFrame(const nsRect* aDamageRect)
|
||||
// XXX We should tell the frame the damage area and let it invalidate
|
||||
// itself. Add some API calls to nsIFrame to allow a caller to invalidate
|
||||
// parts of the frame...
|
||||
mTargetFrame->GetOffsetFromView(offset, view);
|
||||
nsIViewManager* vm;
|
||||
view->GetViewManager(vm);
|
||||
bounds.x += offset.x;
|
||||
bounds.y += offset.y;
|
||||
mTargetFrame->GetView(view);
|
||||
if (nsnull == view) {
|
||||
mTargetFrame->GetOffsetFromView(offset, view);
|
||||
bounds.x += offset.x;
|
||||
bounds.y += offset.y;
|
||||
}
|
||||
// XXX At least for the time being don't allow a synchronous repaint, because
|
||||
// we may already be repainting and we don't want to go re-entrant...
|
||||
nsIViewManager* vm;
|
||||
view->GetViewManager(vm);
|
||||
vm->UpdateView(view, bounds, NS_VMREFRESH_NO_SYNC);
|
||||
NS_RELEASE(vm);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user