зеркало из https://github.com/mozilla/gecko-dev.git
Bug 807472. Pass WILL_SEND_DID_PAINT when calling PresShell::Paint with PAINT_COMPOSITE. r=mattwoodrow
This commit is contained in:
Родитель
0fecd165f2
Коммит
63baefdd10
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче