Don't create page breaks when 'display:none'. b=277035 r+sr=dbaron

This commit is contained in:
mats.palmgren%bredband.net 2005-01-16 15:30:37 +00:00
Родитель 61826a6e64
Коммит 6d8ce3a27b
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -7508,8 +7508,9 @@ nsCSSFrameConstructor::PageBreakBefore(nsIPresShell* aPresShell,
// See if page-break-before is set for all elements except row groups, rows, cells
// (these are handled internally by tables) and construct a page break frame if so.
if (display && ((NS_STYLE_DISPLAY_TABLE == display->mDisplay) ||
(!IsTableRelated(display->mDisplay, PR_TRUE)))) {
if (NS_STYLE_DISPLAY_NONE != display->mDisplay &&
(NS_STYLE_DISPLAY_TABLE == display->mDisplay ||
!IsTableRelated(display->mDisplay, PR_TRUE))) {
if (display->mBreakBefore) {
ConstructPageBreakFrame(aPresShell, aPresContext, aState, aContent,
aParentFrame, aStyleContext, aFrameItems);