bug 505894 remove double null check r=timeless
authorBernd <bmlk@gmx.de>
Sat, 06 Mar 2010 10:53:03 +0100
changeset 39020 76ff2857fdafeb93d3310b290651bf6f9736662b
parent 39019 2a3a2af10feb74cedbd5f484e4b23b66f7bec2a9
child 39021 db38e530c170da57052b5cce7d90f47655bb0490
push id11981
push userbmlk@gmx.de
push dateSat, 06 Mar 2010 09:54:28 +0000
treeherderautoland@db38e530c170 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstimeless
bugs505894
milestone1.9.3a3pre
bug 505894 remove double null check r=timeless
layout/tables/nsTableRowGroupFrame.cpp
--- a/layout/tables/nsTableRowGroupFrame.cpp
+++ b/layout/tables/nsTableRowGroupFrame.cpp
@@ -314,21 +314,19 @@ void
 nsTableRowGroupFrame::InitChildReflowState(nsPresContext&     aPresContext, 
                                            PRBool             aBorderCollapse,
                                            nsHTMLReflowState& aReflowState)                                    
 {
   nsMargin collapseBorder;
   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);
 }
 
 static void
 CacheRowHeightsForPrinting(nsPresContext*   aPresContext,
                            nsTableRowFrame* aFirstRow)