b=17546. Changed block frame code to save/restore space manager when create

a space manager, and changes button code to use the NS_BLOCK_SPACE_MGR flag
when creating the area frame
This commit is contained in:
troy@netscape.com
1999-11-11 06:00:41 +00:00
parent 6edad3ae9a
commit 457d913e71
8 changed files with 56 additions and 2 deletions

View File

@@ -387,7 +387,10 @@ nsHTMLButtonControlFrame::SetInitialChildList(nsIPresContext& aPresContext,
GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&) styleDisplay);
mInline = (NS_STYLE_DISPLAY_BLOCK != styleDisplay->mDisplay);
PRUint8 flags = (mInline) ? NS_BLOCK_SHRINK_WRAP : 0;
PRUint32 flags = NS_BLOCK_SPACE_MGR;
if (mInline) {
flags |= NS_BLOCK_SHRINK_WRAP;
}
nsIFrame* areaFrame;
NS_NewAreaFrame(&areaFrame, flags);
mFrames.SetFrames(areaFrame);