mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
bug 56201 - allow cell to return larger desired size than avail during incremental reflow. sr=buster, r=peterl
This commit is contained in:
parent
39adeae2e9
commit
17cb2cee95
@ -876,10 +876,10 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
|
||||
|
||||
kidSize.width = PR_MAX(kidSize.width, smallestMinWidth);
|
||||
|
||||
if (eReflowReason_Resize == aReflowState.reason) {
|
||||
NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");
|
||||
}
|
||||
// Place the child
|
||||
//////////////////////////////// HACK //////////////////////////////
|
||||
kidSize.width = PR_MIN(kidSize.width, availSize.width);
|
||||
///////////////////////////// END HACK /////////////////////////////
|
||||
FinishReflowChild(firstKid, aPresContext, kidSize,
|
||||
kidOrigin.x, kidOrigin.y, 0);
|
||||
|
||||
|
@ -876,10 +876,10 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext,
|
||||
|
||||
kidSize.width = PR_MAX(kidSize.width, smallestMinWidth);
|
||||
|
||||
if (eReflowReason_Resize == aReflowState.reason) {
|
||||
NS_ASSERTION(kidSize.width <= availSize.width, "child needed more space during resize reflow");
|
||||
}
|
||||
// Place the child
|
||||
//////////////////////////////// HACK //////////////////////////////
|
||||
kidSize.width = PR_MIN(kidSize.width, availSize.width);
|
||||
///////////////////////////// END HACK /////////////////////////////
|
||||
FinishReflowChild(firstKid, aPresContext, kidSize,
|
||||
kidOrigin.x, kidOrigin.y, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user