bug 360422 remove obsolete code r/sr=bzbarsky
--- 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);