mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
bug 40721 - put back fix that was erroneously backed out. r=rods from before.
This commit is contained in:
parent
c4a05b9a09
commit
93d58ddc9c
@ -1437,13 +1437,18 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
||||
PRBool tallestCellGotShorter = PR_FALSE;
|
||||
#ifndef MOZ_MATHML
|
||||
if (initCellDesSize.height < oldCellDesSize.height) {
|
||||
nscoord width = initCellDesSize.width;
|
||||
nscoord height = initCellDesSize.height;
|
||||
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
|
||||
nscoord tallest = GetTallestCell();
|
||||
if ((height == tallest) && (cellMet.height < tallest)) {
|
||||
if (oldCellDesSize.height == GetTallestCell()) {
|
||||
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,13 +1437,18 @@ NS_METHOD nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
||||
PRBool tallestCellGotShorter = PR_FALSE;
|
||||
#ifndef MOZ_MATHML
|
||||
if (initCellDesSize.height < oldCellDesSize.height) {
|
||||
nscoord width = initCellDesSize.width;
|
||||
nscoord height = initCellDesSize.height;
|
||||
CalculateCellActualSize(aNextFrame, width, height, cellAvailWidth); // considers style
|
||||
nscoord tallest = GetTallestCell();
|
||||
if ((height == tallest) && (cellMet.height < tallest)) {
|
||||
if (oldCellDesSize.height == GetTallestCell()) {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user