Bug 536463: Rename nsTableOuterFrame::GetMargin to 'GetChildMargin', so it won't hide unrelated inherited method. r=dbaron
--- a/layout/tables/nsTableOuterFrame.cpp
+++ b/layout/tables/nsTableOuterFrame.cpp
@@ -447,21 +447,21 @@ nsTableOuterFrame::InitChildReflowState(
pCollapsePadding = &collapsePadding;
}
aReflowState.Init(&aPresContext, -1, -1, pCollapseBorder, pCollapsePadding);
}
// get the margin and padding data. nsHTMLReflowState doesn't handle the
// case of auto margins
void
-nsTableOuterFrame::GetMargin(nsPresContext* aPresContext,
- const nsHTMLReflowState& aOuterRS,
- nsIFrame* aChildFrame,
- nscoord aAvailWidth,
- nsMargin& aMargin)
+nsTableOuterFrame::GetChildMargin(nsPresContext* aPresContext,
+ const nsHTMLReflowState& aOuterRS,
+ nsIFrame* aChildFrame,
+ nscoord aAvailWidth,
+ nsMargin& aMargin)
{
// construct a reflow state to compute margin and padding. Auto margins
// will not be computed at this time.
// create and init the child reflow state
// XXX We really shouldn't construct a reflow state to do this.
nsHTMLReflowState childRS(aPresContext, aOuterRS, aChildFrame,
nsSize(aAvailWidth, aOuterRS.availableHeight),
@@ -958,18 +958,18 @@ nsTableOuterFrame::OuterBeginReflowChild
{
// work around pixel rounding errors, round down to ensure we don't exceed the avail height in
nscoord availHeight = aOuterRS.availableHeight;
if (NS_UNCONSTRAINEDSIZE != availHeight) {
if (mCaptionFrame == aChildFrame) {
availHeight = NS_UNCONSTRAINEDSIZE;
} else {
nsMargin margin;
- GetMargin(aPresContext, aOuterRS, aChildFrame, aOuterRS.availableWidth,
- margin);
+ GetChildMargin(aPresContext, aOuterRS, aChildFrame,
+ aOuterRS.availableWidth, margin);
NS_ASSERTION(NS_UNCONSTRAINEDSIZE != margin.top, "No unconstrainedsize arithmetic, please");
availHeight -= margin.top;
NS_ASSERTION(NS_UNCONSTRAINEDSIZE != margin.bottom, "No unconstrainedsize arithmetic, please");
availHeight -= margin.bottom;
}
}
--- a/layout/tables/nsTableOuterFrame.h
+++ b/layout/tables/nsTableOuterFrame.h
@@ -258,21 +258,21 @@ protected:
// Set the reflow metrics
void UpdateReflowMetrics(PRUint8 aCaptionSide,
nsHTMLReflowMetrics& aMet,
const nsMargin& aInnerMargin,
const nsMargin& aCaptionMargin);
// Get the margin. aMarginNoAuto is aMargin, but with auto
// margins set to 0
- void GetMargin(nsPresContext* aPresContext,
- const nsHTMLReflowState& aOuterRS,
- nsIFrame* aChildFrame,
- nscoord aAvailableWidth,
- nsMargin& aMargin);
+ void GetChildMargin(nsPresContext* aPresContext,
+ const nsHTMLReflowState& aOuterRS,
+ nsIFrame* aChildFrame,
+ nscoord aAvailableWidth,
+ nsMargin& aMargin);
private:
// used to keep track of this frame's children. They are redundant with mFrames, but more convient
nsTableFrame* mInnerTableFrame;
nsFrameList mCaptionFrames;
nsIFrame* mCaptionFrame;
};