From f62f7441c8fedfd33f6dd0f689a2a3b0d8367c8a Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Fri, 24 Dec 2004 07:35:33 +0000 Subject: [PATCH] dont take colgroup pseudoframes into account when creating row- or rowgroup pseudo frames bug 267725 p=basic@mozillanews.org r=bernd sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@167014 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index c9004b92718..b2d7b8a686b 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -2700,7 +2700,7 @@ nsCSSFrameConstructor::GetPseudoRowGroupFrame(nsIPresShell* aPresShel nsPseudoFrames& pseudoFrames = aState.mPseudoFrames; nsIAtom* parentFrameType = aParentFrameIn.GetType(); - if (pseudoFrames.IsEmpty()) { + if (!pseudoFrames.mLowestType) { PRBool created = PR_FALSE; if (nsLayoutAtoms::tableRowFrame == parentFrameType) { // row parent rv = CreatePseudoCellFrame(aPresShell, aPresContext, aTableCreator, aState, &aParentFrameIn); @@ -2740,7 +2740,7 @@ nsCSSFrameConstructor::GetPseudoRowFrame(nsIPresShell* aPresShell, nsPseudoFrames& pseudoFrames = aState.mPseudoFrames; nsIAtom* parentFrameType = aParentFrameIn.GetType(); - if (pseudoFrames.IsEmpty()) { + if (!pseudoFrames.mLowestType) { PRBool created = PR_FALSE; if (IS_TABLE_CELL(parentFrameType) || // cell parent !IsTableRelated(parentFrameType, PR_TRUE)) { // block parent