Fix two problems with display fixups. b=231787 r+sr=bzbarsky

This commit is contained in:
dbaron@dbaron.org
2004-01-22 21:34:04 +00:00
parent 9c4e2b33c8
commit 32dfdf2c8c
4 changed files with 36 additions and 34 deletions

View File

@@ -3311,9 +3311,6 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresShell* aPresShell,
}
}
PRBool docElemIsTable = IsTableRelated(display->mDisplay, PR_FALSE);
// --------- IF SCROLLABLE WRAP IN SCROLLFRAME --------
PRBool isScrollable = IsScrollable(aPresContext, display);
@@ -3348,6 +3345,9 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresShell* aPresShell,
PRBool isBlockFrame = PR_FALSE;
nsresult rv;
PRBool docElemIsTable = display->mDisplay == NS_STYLE_DISPLAY_TABLE ||
display->mDisplay == NS_STYLE_DISPLAY_INLINE_TABLE;
if (docElemIsTable) {
// if the document is a table then just populate it.
rv = ConstructDocElementTableFrame(aPresShell, aPresContext, aDocElement,