зеркало из https://github.com/mozilla/pjs.git
bug 42726 - back out previous checkin.
This commit is contained in:
Родитель
154339463e
Коммит
027a9b2cb0
|
@ -1437,18 +1437,13 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
|||
PRBool tallestCellGotShorter = PR_FALSE;
|
||||
#ifndef MOZ_MATHML
|
||||
if (initCellDesSize.height < oldCellDesSize.height) {
|
||||
if (oldCellDesSize.height == GetTallestCell()) {
|
||||
nscoord width = initCellDesSize.width;
|
||||
nscoord height = initCellDesSize.height;
|
||||
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
|
||||
nscoord tallest = GetTallestCell();
|
||||
if ((height == tallest) && (cellMet.height < tallest)) {
|
||||
tallestCellGotShorter = PR_TRUE;
|
||||
}
|
||||
else {
|
||||
nscoord width = initCellDesSize.width;
|
||||
nscoord height = initCellDesSize.height;
|
||||
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
|
||||
nscoord tallest = GetTallestCell();
|
||||
if ((height == tallest) && (cellMet.height < tallest)) {
|
||||
tallestCellGotShorter = PR_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tallestCellGotShorter) {
|
||||
CalcTallestCell();
|
||||
|
|
|
@ -1437,18 +1437,13 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
|||
PRBool tallestCellGotShorter = PR_FALSE;
|
||||
#ifndef MOZ_MATHML
|
||||
if (initCellDesSize.height < oldCellDesSize.height) {
|
||||
if (oldCellDesSize.height == GetTallestCell()) {
|
||||
nscoord width = initCellDesSize.width;
|
||||
nscoord height = initCellDesSize.height;
|
||||
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
|
||||
nscoord tallest = GetTallestCell();
|
||||
if ((height == tallest) && (cellMet.height < tallest)) {
|
||||
tallestCellGotShorter = PR_TRUE;
|
||||
}
|
||||
else {
|
||||
nscoord width = initCellDesSize.width;
|
||||
nscoord height = initCellDesSize.height;
|
||||
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
|
||||
nscoord tallest = GetTallestCell();
|
||||
if ((height == tallest) && (cellMet.height < tallest)) {
|
||||
tallestCellGotShorter = PR_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tallestCellGotShorter) {
|
||||
CalcTallestCell();
|
||||
|
|
Загрузка…
Ссылка в новой задаче