Added an nsIPresContext& to html-reflow-state's ctors and used it to implement better percentage width/height handling
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user