mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1165667: Use reflow state's reference rendering context during flex layout, instead of creating a temporary one. r=mats
This commit is contained in:
parent
bb51644dac
commit
1f6784127e
@ -1424,10 +1424,10 @@ nsFlexContainerFrame::
|
||||
// Measure content, if needed (w/ intrinsic-width method or a reflow)
|
||||
if (minSizeNeedsToMeasureContent || flexBasisNeedsToMeasureContent) {
|
||||
if (aAxisTracker.IsMainAxisHorizontal()) {
|
||||
nsRenderingContext rctx(
|
||||
aPresContext->PresShell()->CreateReferenceRenderingContext());
|
||||
if (minSizeNeedsToMeasureContent) {
|
||||
resolvedMinSize = std::min(resolvedMinSize, aFlexItem.Frame()->GetMinISize(&rctx));
|
||||
nscoord frameMinISize =
|
||||
aFlexItem.Frame()->GetMinISize(aItemReflowState.rendContext);
|
||||
resolvedMinSize = std::min(resolvedMinSize, frameMinISize);
|
||||
}
|
||||
NS_ASSERTION(!flexBasisNeedsToMeasureContent,
|
||||
"flex-basis:auto should have been resolved in the "
|
||||
|
Loading…
Reference in New Issue
Block a user