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