Bug 425253. Propagate reflow-depth tracking through XUL box layout. r+sr=dbaron,a=damon

This commit is contained in:
2008-04-09 21:39:41 -07:00
parent cb29ee3692
commit 81fd20f5b1
11 changed files with 48 additions and 25 deletions

View File

@@ -1383,8 +1383,8 @@ nsTextControlFrame::CalcIntrinsicSize(nsIRenderingContext* aRenderingContext,
CallQueryInterface(first, &scrollableFrame);
NS_ASSERTION(scrollableFrame, "Child must be scrollable");
nsBoxLayoutState bls(PresContext(), aRenderingContext);
nsMargin scrollbarSizes = scrollableFrame->GetDesiredScrollbarSizes(&bls);
nsMargin scrollbarSizes =
scrollableFrame->GetDesiredScrollbarSizes(PresContext(), aRenderingContext);
aIntrinsicSize.width += scrollbarSizes.LeftRight();