mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1141867 - patch 1 - Use the proper writing mode to return the inline-size from FloatMarginISize. r=smontagu
This commit is contained in:
parent
ce1263979f
commit
9005cd7c14
@ -642,6 +642,8 @@ nsBlockReflowState::CanPlaceFloat(nscoord aFloatISize,
|
||||
aFloatISize;
|
||||
}
|
||||
|
||||
// Return the inline-size that the float (including margins) will take up
|
||||
// in the writing mode of the containing block.
|
||||
static nscoord
|
||||
FloatMarginISize(const nsHTMLReflowState& aCBReflowState,
|
||||
nscoord aFloatAvailableISize,
|
||||
@ -663,9 +665,11 @@ FloatMarginISize(const nsHTMLReflowState& aCBReflowState,
|
||||
aFloatOffsetState.ComputedLogicalPadding().Size(wm),
|
||||
nsIFrame::ComputeSizeFlags::eShrinkWrap);
|
||||
|
||||
return floatSize.ISize(wm) +
|
||||
aFloatOffsetState.ComputedLogicalMargin().IStartEnd(wm) +
|
||||
aFloatOffsetState.ComputedLogicalBorderPadding().IStartEnd(wm);
|
||||
floatSize += aFloatOffsetState.ComputedLogicalMargin().Size(wm);
|
||||
floatSize += aFloatOffsetState.ComputedLogicalBorderPadding().Size(wm);
|
||||
|
||||
WritingMode cbwm = aCBReflowState.GetWritingMode();
|
||||
return floatSize.ConvertTo(cbwm, wm).ISize(cbwm);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user