bug 76421 - remove optimization (to skip reflow if size didn't change) on initial reflow. a=asa, sr=attinasi, r=peterl

This commit is contained in:
karnaze%netscape.com 2001-06-13 02:27:22 +00:00
Родитель 8c82e35ad2
Коммит 2be20eaef3
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1470,7 +1470,7 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext* aPresContext,
aPresContext->IsPaginated(&isPaginated); aPresContext->IsPaginated(&isPaginated);
PRBool needUpdateMetrics = PR_TRUE; PRBool needUpdateMetrics = PR_TRUE;
if (((eReflowReason_Initial == aOuterRS.reason) || (eReflowReason_Resize == aOuterRS.reason)) && if ((eReflowReason_Resize == aOuterRS.reason) &&
(aOuterRS.availableWidth == mPriorAvailWidth) && (aOuterRS.availableWidth == mPriorAvailWidth) &&
!isPaginated) { !isPaginated) {
// don't do much if we are resize reflowed exactly like last time // don't do much if we are resize reflowed exactly like last time

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

@ -1470,7 +1470,7 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext* aPresContext,
aPresContext->IsPaginated(&isPaginated); aPresContext->IsPaginated(&isPaginated);
PRBool needUpdateMetrics = PR_TRUE; PRBool needUpdateMetrics = PR_TRUE;
if (((eReflowReason_Initial == aOuterRS.reason) || (eReflowReason_Resize == aOuterRS.reason)) && if ((eReflowReason_Resize == aOuterRS.reason) &&
(aOuterRS.availableWidth == mPriorAvailWidth) && (aOuterRS.availableWidth == mPriorAvailWidth) &&
!isPaginated) { !isPaginated) {
// don't do much if we are resize reflowed exactly like last time // don't do much if we are resize reflowed exactly like last time