зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
84cc1d3e34
Коммит
190597c08b
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче