Bug 919318 - A few cosmetic changes after dropping the Get prefix on some methods. r=dholbert

This commit is contained in:
Mats Palmgren
2013-09-25 11:42:35 +00:00
parent 636e2bb841
commit 0961f90d83
6 changed files with 48 additions and 37 deletions

View File

@@ -182,7 +182,7 @@ nsresult
nsTableCellFrame::GetColIndex(int32_t &aColIndex) const
{
if (GetPrevInFlow()) {
return ((nsTableCellFrame*)FirstInFlow())->GetColIndex(aColIndex);
return static_cast<nsTableCellFrame*>(FirstInFlow())->GetColIndex(aColIndex);
}
else {
aColIndex = mColIndex;
@@ -787,12 +787,14 @@ CalcUnpaginagedHeight(nsPresContext* aPresContext,
nsTableFrame& aTableFrame,
nscoord aVerticalBorderPadding)
{
const nsTableCellFrame* firstCellInFlow = (nsTableCellFrame*)aCellFrame.FirstInFlow();
nsTableFrame* firstTableInFlow = (nsTableFrame*)aTableFrame.FirstInFlow();
nsTableRowFrame* row
= static_cast<nsTableRowFrame*>(firstCellInFlow->GetParent());
nsTableRowGroupFrame* firstRGInFlow
= static_cast<nsTableRowGroupFrame*>(row->GetParent());
const nsTableCellFrame* firstCellInFlow =
static_cast<nsTableCellFrame*>(aCellFrame.FirstInFlow());
nsTableFrame* firstTableInFlow =
static_cast<nsTableFrame*>(aTableFrame.FirstInFlow());
nsTableRowFrame* row =
static_cast<nsTableRowFrame*>(firstCellInFlow->GetParent());
nsTableRowGroupFrame* firstRGInFlow =
static_cast<nsTableRowGroupFrame*>(row->GetParent());
int32_t rowIndex;
firstCellInFlow->GetRowIndex(rowIndex);