From 4161660a5beabfb9154ec8798c412478564a25f4 Mon Sep 17 00:00:00 2001 From: kipp Date: Fri, 29 May 1998 02:12:59 +0000 Subject: [PATCH] Treat list-item like block when creating frames git-svn-id: svn://10.0.0.236/trunk@2599 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/base/src/nsHTMLContainer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/html/base/src/nsHTMLContainer.cpp b/mozilla/layout/html/base/src/nsHTMLContainer.cpp index 191a61b9a1a..9d5c867ddc7 100644 --- a/mozilla/layout/html/base/src/nsHTMLContainer.cpp +++ b/mozilla/layout/html/base/src/nsHTMLContainer.cpp @@ -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.