bug 360422 remove obsolete code r/sr=bzbarsky
authorBernd <bmlk@gmx.de>
Sun, 26 Oct 2008 10:24:59 +0100
changeset 20834 b7385c2a17eba906c789cb8a6c094dade41e3f20
parent 20833 3e0af2b93a93eaaf6a8cdafad0e57e2ae9cf19b4
child 20835 5b5d20d79a019ef96a29f502157b125a165c2fa8
push idunknown
push userunknown
push dateunknown
bugs360422
milestone1.9.1b2pre
bug 360422 remove obsolete code r/sr=bzbarsky
layout/tables/nsTableOuterFrame.cpp
layout/tables/nsTableOuterFrame.h
--- a/layout/tables/nsTableOuterFrame.cpp
+++ b/layout/tables/nsTableOuterFrame.cpp
@@ -1042,31 +1042,16 @@ nsTableOuterFrame::GetInnerOrigin(PRUint
                                            aContainBlockSize.height, height);
     }
     aOrigin.y = aCaptionMargin.top + aCaptionSize.height + collapseMargin;
   } break;
   }
   return NS_OK;
 }
 
-// helper method for determining if this is a nested table or not
-PRBool 
-nsTableOuterFrame::IsNested(const nsHTMLReflowState& aReflowState) const
-{
-  // Walk up the reflow state chain until we find a cell or the root
-  const nsHTMLReflowState* rs = aReflowState.parentReflowState;
-  while (rs) {
-    if (nsGkAtoms::tableFrame == rs->frame->GetType()) {
-      return PR_TRUE;
-    }
-    rs = rs->parentReflowState;
-  }
-  return PR_FALSE;
-}
-
 void
 nsTableOuterFrame::OuterBeginReflowChild(nsPresContext*           aPresContext,
                                          nsIFrame*                aChildFrame,
                                          const nsHTMLReflowState& aOuterRS,
                                          void*                    aChildRSSpace,
                                          nscoord                  aAvailWidth)
 { 
   // work around pixel rounding errors, round down to ensure we don't exceed the avail height in
--- a/layout/tables/nsTableOuterFrame.h
+++ b/layout/tables/nsTableOuterFrame.h
@@ -193,18 +193,16 @@ public:
                            PRBool& aIsSelected);
 
   /** @see nsITableFrame::GetTableSize */
   NS_IMETHOD GetTableSize(PRInt32& aRowCount, PRInt32& aColCount);
 
   NS_IMETHOD GetIndexByRowAndColumn(PRInt32 aRow, PRInt32 aColumn, PRInt32 *aIndex);
   NS_IMETHOD GetRowAndColumnByIndex(PRInt32 aIndex, PRInt32 *aRow, PRInt32 *aColumn);
 
-  PRBool IsNested(const nsHTMLReflowState& aReflowState) const;
-
 protected:
 
 
   nsTableOuterFrame(nsStyleContext* aContext);
   virtual ~nsTableOuterFrame();
 
   void InitChildReflowState(nsPresContext&    aPresContext,                     
                             nsHTMLReflowState& aReflowState);