From 00f6fe6ef11dfbd622953c339d1ce6a258cda4bc Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Thu, 4 May 2006 18:26:43 +0000 Subject: [PATCH] use a pseudoframe as a parent only when it has children, bug 336291 r/sr=bzbarsky --- layout/base/nsCSSFrameConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 6cb2ef6ac25..084172fe0b3 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -2621,9 +2621,9 @@ ProcessPseudoRowGroupFrame(nsPseudoFrameData& aPseudoData, nsresult rv = NS_OK; aParent = aPseudoData.mFrame; - nsTableRowGroupFrame* rgFrame = nsTableFrame::GetRowGroupFrame(aParent); nsFrameItems* items = &aPseudoData.mChildList; if (items && items->childList) { + nsTableRowGroupFrame* rgFrame = nsTableFrame::GetRowGroupFrame(aParent); rv = rgFrame->SetInitialChildList(nsnull, items->childList); if (NS_FAILED(rv)) return rv; }