Treat list-item like block when creating frames

git-svn-id: svn://10.0.0.236/trunk@2599 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp 1998-05-29 02:12:59 +00:00
parent e7abe8a2fb
commit 4161660a5b

View File

@ -24,7 +24,6 @@
#include "nsStyleConsts.h"
#include "nsBlockFrame.h"
#include "nsInlineFrame.h"
#include "nsListItemFrame.h"
#include "nsIPresContext.h"
#include "nsHTMLIIDs.h"
#include "nsHTMLAtoms.h"
@ -190,14 +189,14 @@ nsHTMLContainer::CreateFrame(nsIPresContext* aPresContext,
nsresult rv;
switch (styleDisplay->mDisplay) {
case NS_STYLE_DISPLAY_BLOCK:
case NS_STYLE_DISPLAY_LIST_ITEM:
rv = nsBlockFrame::NewFrame(&frame, this, aParentFrame);
break;
case NS_STYLE_DISPLAY_INLINE:
rv = nsInlineFrame::NewFrame(&frame, this, aParentFrame);
break;
case NS_STYLE_DISPLAY_LIST_ITEM:
rv = nsListItemFrame::NewFrame(&frame, this, aParentFrame);
break;
default:
// Create an empty frame for holding content that is not being
// reflowed.