remove obsolete assert and comment bug 430374 r/sr=bzbarsky
authorBernd <bmlk@gmx.de>
Sun, 24 Aug 2008 10:06:57 +0200
changeset 18339 dc351caa80f85d18246a5fc2dc863e65bf616a11
parent 18338 8a3fb9f516d976d0bfa64d9e12ac994a77df1899
child 18340 65973ed0f24add2bb76d1a33d567870f25ecdc68
push idunknown
push userunknown
push dateunknown
bugs430374
milestone1.9.1a2pre
remove obsolete assert and comment bug 430374 r/sr=bzbarsky
layout/tables/nsTableRowGroupFrame.cpp
--- a/layout/tables/nsTableRowGroupFrame.cpp
+++ b/layout/tables/nsTableRowGroupFrame.cpp
@@ -919,29 +919,21 @@ nsTableRowGroupFrame::CollapseRowGroupIf
                                               groupRect.height));
   nsTableFrame::RePositionViews(this);
   nsTableFrame::InvalidateFrame(this, oldGroupRect, oldGroupOverflowRect,
                                 PR_FALSE);
 
   return yGroupOffset;
 }
 
-// Move a child that was skipped during an incremental reflow.
-// This function is not used for paginated mode so we don't need to deal
-// with continuing frames, and it's only called if aKidFrame has no
-// cells that span into it and no cells that span across it. That way
-// we don't have to deal with rowspans
-// XXX Is it still true that it's not used for paginated mode?
+// Move a child that was skipped during a reflow.
 void
 nsTableRowGroupFrame::SlideChild(nsRowGroupReflowState& aReflowState,
                                  nsIFrame*              aKidFrame)
 {
-  NS_PRECONDITION(NS_UNCONSTRAINEDSIZE == aReflowState.reflowState.availableHeight,
-                  "we're not in galley mode");
-
   // Move the frame if we need to
   nsPoint oldPosition = aKidFrame->GetPosition();
   nsPoint newPosition = oldPosition;
   newPosition.y = aReflowState.y;
   if (oldPosition.y != newPosition.y) {
     aKidFrame->InvalidateOverflowRect();
     aKidFrame->SetPosition(newPosition);
     nsTableFrame::RePositionViews(aKidFrame);