From ad5522015f1b169d8b85155440431ef2db036fcc Mon Sep 17 00:00:00 2001 From: Bernd Date: Sat, 6 Mar 2010 10:53:03 +0100 Subject: [PATCH] bug 505894 remove double null check r=timeless --- layout/tables/nsTableRowGroupFrame.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/layout/tables/nsTableRowGroupFrame.cpp b/layout/tables/nsTableRowGroupFrame.cpp index 4d83a33d2d61..9476bb5caa9b 100644 --- a/layout/tables/nsTableRowGroupFrame.cpp +++ b/layout/tables/nsTableRowGroupFrame.cpp @@ -319,11 +319,9 @@ nsTableRowGroupFrame::InitChildReflowState(nsPresContext& aPresContext, nsMargin padding(0,0,0,0); nsMargin* pCollapseBorder = nsnull; if (aBorderCollapse) { - if (aReflowState.frame) { - nsTableRowFrame *rowFrame = do_QueryFrame(aReflowState.frame); - if (rowFrame) { - pCollapseBorder = rowFrame->GetBCBorderWidth(collapseBorder); - } + nsTableRowFrame *rowFrame = do_QueryFrame(aReflowState.frame); + if (rowFrame) { + pCollapseBorder = rowFrame->GetBCBorderWidth(collapseBorder); } } aReflowState.Init(&aPresContext, -1, -1, pCollapseBorder, &padding);