From 04ee0a91e7dcc6597217d787f6b0ff5b41d820fa Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Mon, 11 Sep 2006 18:09:16 +0000 Subject: [PATCH] use table display type for decision about the documentElement only if the frame creation is not tag based bug 340945 r/sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@209733 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 8ee7cd9b51d..f266f116629 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -4597,7 +4597,10 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsFrameConstructorState& aState, // by the style system, so we can assume that display->mDisplay is // either NONE, BLOCK, or TABLE. - PRBool docElemIsTable = display->mDisplay == NS_STYLE_DISPLAY_TABLE; + PRBool docElemIsTable = (display->mDisplay == NS_STYLE_DISPLAY_TABLE) && + !IsSpecialContent(aDocElement, aDocElement->Tag(), + aDocElement->GetNameSpaceID(), + styleContext); if (docElemIsTable) { // if the document is a table then just populate it.