mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
When root content frame doesn't have any children make sure the aDesiredSize out parameter is properly setup
This commit is contained in:
parent
1dea854825
commit
a5e8fccf79
@ -401,6 +401,16 @@ NS_METHOD RootContentFrame::Reflow(nsIPresContext* aPresContext,
|
|||||||
mFirstChild->DidReflow(*aPresContext, NS_FRAME_REFLOW_FINISHED);
|
mFirstChild->DidReflow(*aPresContext, NS_FRAME_REFLOW_FINISHED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
aDesiredSize.width = aReflowState.maxSize.width;
|
||||||
|
aDesiredSize.height = aReflowState.maxSize.height;
|
||||||
|
aDesiredSize.ascent = aDesiredSize.height;
|
||||||
|
aDesiredSize.descent = 0;
|
||||||
|
if (nsnull != aDesiredSize.maxElementSize) {
|
||||||
|
aDesiredSize.maxElementSize->width = 0;
|
||||||
|
aDesiredSize.maxElementSize->height = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user