Bug 309550. Margins should not collapse through fieldset boundaries. r+sr=dbaron

This commit is contained in:
roc+%cs.cmu.edu 2006-01-19 18:44:09 +00:00
parent 65d8e317d0
commit a51474e56f

View File

@ -5465,7 +5465,8 @@ nsCSSFrameConstructor::ConstructFieldSetFrame(nsFrameConstructorState& aState,
nsHTMLContainerFrame::CreateViewForFrame(newFrame, aParentFrame, PR_FALSE);
nsIFrame* areaFrame =
NS_NewAreaFrame(mPresShell, NS_BLOCK_SPACE_MGR | NS_BLOCK_SHRINK_WRAP);
NS_NewAreaFrame(mPresShell,
NS_BLOCK_SPACE_MGR | NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT);
// Resolve style and initialize the frame
nsRefPtr<nsStyleContext> styleContext;