As step #1 in incremental painting I changed Reflow() to invalidate the

entire bounds after an incremental reflow. The table should be smarter about
how much it invalidates, but this is necessary for the time being because the
area frame no longer invalidates everything
This commit is contained in:
troy%netscape.com 1999-07-14 15:21:52 +00:00
Родитель 84cc1d3e34
Коммит 190597c08b
2 изменённых файлов: 26 добавлений и 0 удалений

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

@ -2616,6 +2616,19 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext& aPresContext,
SetColumnDimensions(aDesiredSize.height);
// If this is an incremental reflow, then we need to make sure that any
// damaged areas are repainted
if (eReflowReason_Incremental == aReflowState.reason) {
nsRect damageRect;
// XXX We need finer granularity than this...
damageRect.x = 0;
damageRect.y = 0;
damageRect.width = mRect.width;
damageRect.height = mRect.height;
Invalidate(damageRect);
}
if (PR_TRUE==gsDebug) printf("end reflow for table %p\n", this);
return rv;
}

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

@ -2616,6 +2616,19 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext& aPresContext,
SetColumnDimensions(aDesiredSize.height);
// If this is an incremental reflow, then we need to make sure that any
// damaged areas are repainted
if (eReflowReason_Incremental == aReflowState.reason) {
nsRect damageRect;
// XXX We need finer granularity than this...
damageRect.x = 0;
damageRect.y = 0;
damageRect.width = mRect.width;
damageRect.height = mRect.height;
Invalidate(damageRect);
}
if (PR_TRUE==gsDebug) printf("end reflow for table %p\n", this);
return rv;
}