Added an nsIPresContext& to html-reflow-state's ctors and used it to implement better percentage width/height handling

This commit is contained in:
kipp@netscape.com
1998-10-12 14:48:02 +00:00
parent 8378099129
commit 9f8e72a224
52 changed files with 871 additions and 336 deletions

View File

@@ -324,7 +324,8 @@ nsHTMLFrameOuterFrame::Reflow(nsIPresContext& aPresContext,
// Reflow the child and get its desired size
nsHTMLReflowMetrics kidMetrics(aDesiredSize.maxElementSize);
nsHTMLReflowState kidReflowState(mFirstChild, aReflowState, innerSize);
nsHTMLReflowState kidReflowState(aPresContext, mFirstChild, aReflowState,
innerSize);
nsIHTMLReflow* htmlReflow;
if (NS_OK == mFirstChild->QueryInterface(kIHTMLReflowIID, (void**)&htmlReflow)) {