Bug 587539. When we get a paint event for a widget in a disconnected view subtree there isn't a display root widget. r=roc

This commit is contained in:
Timothy Nikkel 2010-08-18 20:16:58 -05:00
parent b7b5763383
commit fcaca91e69

View File

@ -1396,7 +1396,7 @@ nsLayoutUtils::PaintFrame(nsIRenderingContext* aRenderingContext, nsIFrame* aFra
// paint in a window, so make sure we flush out any retained layer
// trees before *and after* we draw
flags |= nsDisplayList::PAINT_FLUSH_LAYERS;
} else {
} else if (widget) {
// XXX we should simplify this API now that dirtyWindowRegion always
// covers the entire window
widget->UpdatePossiblyTransparentRegion(dirtyWindowRegion, visibleWindowRegion);