зеркало из https://github.com/mozilla/pjs.git
use the desiredsize and not the previous mrect size for the overflow area, bug 233438, r/sr=dbaron
This commit is contained in:
Родитель
a1f5c7fbfa
Коммит
bc7e69d672
|
@ -3017,7 +3017,7 @@ nsTableFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
|||
desiredSize.height - oldKidRect.height);
|
||||
|
||||
// recover the overflow area from all children
|
||||
desiredSize.mOverflowArea = nsRect(0, 0, mRect.width, mRect.height);
|
||||
desiredSize.mOverflowArea = nsRect(0, 0, desiredSize.width, desiredSize.height);
|
||||
for (nsIFrame* kidFrame = mFrames.FirstChild(); kidFrame; kidFrame = kidFrame->GetNextSibling()) {
|
||||
ConsiderChildOverflow(aPresContext, desiredSize.mOverflowArea, kidFrame);
|
||||
}
|
||||
|
|
|
@ -1336,7 +1336,7 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
// recover the overflow area
|
||||
aDesiredSize.mOverflowArea = nsRect(0, 0, mRect.width, mRect.height);
|
||||
aDesiredSize.mOverflowArea = nsRect(0, 0, aDesiredSize.width, aDesiredSize.height);
|
||||
for (nsIFrame* cell = mFrames.FirstChild(); cell; cell = cell->GetNextSibling()) {
|
||||
ConsiderChildOverflow(aPresContext, aDesiredSize.mOverflowArea, cell);
|
||||
}
|
||||
|
|
|
@ -3017,7 +3017,7 @@ nsTableFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
|||
desiredSize.height - oldKidRect.height);
|
||||
|
||||
// recover the overflow area from all children
|
||||
desiredSize.mOverflowArea = nsRect(0, 0, mRect.width, mRect.height);
|
||||
desiredSize.mOverflowArea = nsRect(0, 0, desiredSize.width, desiredSize.height);
|
||||
for (nsIFrame* kidFrame = mFrames.FirstChild(); kidFrame; kidFrame = kidFrame->GetNextSibling()) {
|
||||
ConsiderChildOverflow(aPresContext, desiredSize.mOverflowArea, kidFrame);
|
||||
}
|
||||
|
|
|
@ -1336,7 +1336,7 @@ nsTableRowFrame::IR_TargetIsChild(nsIPresContext* aPresContext,
|
|||
}
|
||||
|
||||
// recover the overflow area
|
||||
aDesiredSize.mOverflowArea = nsRect(0, 0, mRect.width, mRect.height);
|
||||
aDesiredSize.mOverflowArea = nsRect(0, 0, aDesiredSize.width, aDesiredSize.height);
|
||||
for (nsIFrame* cell = mFrames.FirstChild(); cell; cell = cell->GetNextSibling()) {
|
||||
ConsiderChildOverflow(aPresContext, aDesiredSize.mOverflowArea, cell);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче