зеркало из https://github.com/mozilla/gecko-dev.git
use the desiredsize and not the previous mrect size for the overflow area, bug 233438, r/sr=dbaron
This commit is contained in:
Родитель
86da9f856f
Коммит
fcfa993e38
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче