mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
Bug 1103613 - Use better inline-size for an orthogonal flow within a block of specified dimensions. r=smontagu
This commit is contained in:
parent
c17b663150
commit
9a4427f454
@ -192,6 +192,16 @@ nsHTMLReflowState::nsHTMLReflowState(nsPresContext* aPresContext,
|
||||
AvailableISize() = aAvailableSpace.ISize(mWritingMode);
|
||||
AvailableBSize() = aAvailableSpace.BSize(mWritingMode);
|
||||
|
||||
if (mWritingMode.IsOrthogonalTo(aParentReflowState.GetWritingMode())) {
|
||||
// If we're setting up for an orthogonal flow, and the parent reflow state
|
||||
// had a constrained ComputedBSize, we can use that as our AvailableISize
|
||||
// in preference to leaving it unconstrained.
|
||||
if (AvailableISize() == NS_UNCONSTRAINEDSIZE &&
|
||||
aParentReflowState.ComputedBSize() != NS_UNCONSTRAINEDSIZE) {
|
||||
AvailableISize() = aParentReflowState.ComputedBSize();
|
||||
}
|
||||
}
|
||||
|
||||
mFloatManager = aParentReflowState.mFloatManager;
|
||||
if (frame->IsFrameOfType(nsIFrame::eLineParticipant))
|
||||
mLineLayout = aParentReflowState.mLineLayout;
|
||||
|
Loading…
Reference in New Issue
Block a user