Bug 807472. Pass WILL_SEND_DID_PAINT when calling PresShell::Paint with PAINT_COMPOSITE. r=mattwoodrow

This commit is contained in:
Robert O'Callahan 2012-11-02 23:42:59 +13:00
parent 6a3039a63c
commit ecae7aec52

View File

@ -363,14 +363,10 @@ void nsViewManager::Refresh(nsView *aView, const nsIntRegion& aRegion,
#ifdef DEBUG_INVALIDATIONS
printf("--COMPOSITE-- %p\n", mPresShell);
#endif
if (IsRefreshDriverPaintingEnabled()) {
mPresShell->Paint(aView, damageRegion, nsIPresShell::PAINT_COMPOSITE);
} else {
mPresShell->Paint(aView, damageRegion,
nsIPresShell::PAINT_LAYERS |
nsIPresShell::PAINT_COMPOSITE |
(aWillSendDidPaint ? nsIPresShell::PAINT_WILL_SEND_DID_PAINT : 0));
}
mPresShell->Paint(aView, damageRegion,
(IsRefreshDriverPaintingEnabled() ? 0 : nsIPresShell::PAINT_LAYERS) |
nsIPresShell::PAINT_COMPOSITE |
(aWillSendDidPaint ? nsIPresShell::PAINT_WILL_SEND_DID_PAINT : 0));
#ifdef DEBUG_INVALIDATIONS
printf("--ENDCOMPOSITE--\n");
#endif