use table display type for decision about the documentElement only if the frame creation is not tag based bug 340945 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2006-09-11 18:09:16 +00:00
Родитель bc407caf25
Коммит fc928f9cd2
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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.