Bug 919318 - Drop the Get prefix on the frame methods GetFirstContinuation, GetLastContinuation, GetFirstInFlow, GetLastInFlow and also on nsLayoutUtils::GetLastContinuationWithChild, because they never return null. r=dholbert
This commit is contained in:
@@ -182,7 +182,7 @@ nsresult
|
||||
nsTableCellFrame::GetColIndex(int32_t &aColIndex) const
|
||||
{
|
||||
if (GetPrevInFlow()) {
|
||||
return ((nsTableCellFrame*)GetFirstInFlow())->GetColIndex(aColIndex);
|
||||
return ((nsTableCellFrame*)FirstInFlow())->GetColIndex(aColIndex);
|
||||
}
|
||||
else {
|
||||
aColIndex = mColIndex;
|
||||
@@ -787,8 +787,8 @@ CalcUnpaginagedHeight(nsPresContext* aPresContext,
|
||||
nsTableFrame& aTableFrame,
|
||||
nscoord aVerticalBorderPadding)
|
||||
{
|
||||
const nsTableCellFrame* firstCellInFlow = (nsTableCellFrame*)aCellFrame.GetFirstInFlow();
|
||||
nsTableFrame* firstTableInFlow = (nsTableFrame*)aTableFrame.GetFirstInFlow();
|
||||
const nsTableCellFrame* firstCellInFlow = (nsTableCellFrame*)aCellFrame.FirstInFlow();
|
||||
nsTableFrame* firstTableInFlow = (nsTableFrame*)aTableFrame.FirstInFlow();
|
||||
nsTableRowFrame* row
|
||||
= static_cast<nsTableRowFrame*>(firstCellInFlow->GetParent());
|
||||
nsTableRowGroupFrame* firstRGInFlow
|
||||
@@ -821,7 +821,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
|
||||
DISPLAY_REFLOW(aPresContext, this, aReflowState, aDesiredSize, aStatus);
|
||||
|
||||
if (aReflowState.mFlags.mSpecialHeightReflow) {
|
||||
GetFirstInFlow()->AddStateBits(NS_TABLE_CELL_HAD_SPECIAL_REFLOW);
|
||||
FirstInFlow()->AddStateBits(NS_TABLE_CELL_HAD_SPECIAL_REFLOW);
|
||||
}
|
||||
|
||||
// see if a special height reflow needs to occur due to having a pct height
|
||||
@@ -890,7 +890,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
|
||||
kidReflowState.mFlags.mSpecialHeightReflow = false;
|
||||
|
||||
if (aReflowState.mFlags.mSpecialHeightReflow ||
|
||||
(GetFirstInFlow()->GetStateBits() & NS_TABLE_CELL_HAD_SPECIAL_REFLOW)) {
|
||||
(FirstInFlow()->GetStateBits() & NS_TABLE_CELL_HAD_SPECIAL_REFLOW)) {
|
||||
// We need to force the kid to have mVResize set if we've had a
|
||||
// special reflow in the past, since the non-special reflow needs to
|
||||
// resize back to what it was without the special height reflow.
|
||||
|
||||
Reference in New Issue
Block a user