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
Родитель 0fecd165f2
Коммит 63baefdd10
1 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -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