mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Nuke some more warnings
This commit is contained in:
parent
ef8d06d258
commit
5b80d4a004
@ -583,7 +583,7 @@ PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nscoord aMaxWidth
|
||||
// so that nested and/or overlaping col spans handle the inner ones first,
|
||||
// ensuring more accurated calculations.
|
||||
for (colX = mNumCols - 1; colX >= 0; colX--) {
|
||||
for (PRInt32 rowX = 0; rowX < numRows; rowX++) {
|
||||
for (rowX = 0; rowX < numRows; rowX++) {
|
||||
PRBool originates;
|
||||
PRInt32 colSpan;
|
||||
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
|
||||
@ -983,7 +983,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
|
||||
for (rowX = 0; rowX < numRows; rowX++) {
|
||||
PRBool originates;
|
||||
PRInt32 colSpan;
|
||||
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
|
||||
mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
|
||||
if (!originates || (1 == colSpan)) {
|
||||
continue;
|
||||
}
|
||||
@ -1021,7 +1021,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
|
||||
continue;
|
||||
}
|
||||
PRBool cellSpansPercent = PR_FALSE;
|
||||
PRInt32 spanX;
|
||||
|
||||
// see if any of the spanned cols are percent based
|
||||
for (spanX = 0; spanX < colSpan; spanX++) {
|
||||
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
|
||||
@ -1036,7 +1036,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
|
||||
nscoord spanTotal = 0;
|
||||
nscoord divisor = 0;
|
||||
nscoord spanCellSpacing = 0;
|
||||
PRInt32 spanX;
|
||||
|
||||
for (spanX = 0; spanX < colSpan; spanX++) {
|
||||
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
|
||||
nscoord colWidth = colFrame->GetWidth(MIN_CON);
|
||||
|
@ -28,8 +28,8 @@
|
||||
|
||||
nsTableColFrame::nsTableColFrame()
|
||||
: nsFrame(),
|
||||
mIsAnonymous(PR_FALSE),
|
||||
mProportion(WIDTH_NOT_SET),
|
||||
mIsAnonymous(PR_FALSE),
|
||||
mNonPercentSpansPercent(PR_FALSE)
|
||||
{
|
||||
// note that all fields are initialized to 0 by nsFrame::operator new
|
||||
|
@ -583,7 +583,7 @@ PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nscoord aMaxWidth
|
||||
// so that nested and/or overlaping col spans handle the inner ones first,
|
||||
// ensuring more accurated calculations.
|
||||
for (colX = mNumCols - 1; colX >= 0; colX--) {
|
||||
for (PRInt32 rowX = 0; rowX < numRows; rowX++) {
|
||||
for (rowX = 0; rowX < numRows; rowX++) {
|
||||
PRBool originates;
|
||||
PRInt32 colSpan;
|
||||
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
|
||||
@ -983,7 +983,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
|
||||
for (rowX = 0; rowX < numRows; rowX++) {
|
||||
PRBool originates;
|
||||
PRInt32 colSpan;
|
||||
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
|
||||
mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
|
||||
if (!originates || (1 == colSpan)) {
|
||||
continue;
|
||||
}
|
||||
@ -1021,7 +1021,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
|
||||
continue;
|
||||
}
|
||||
PRBool cellSpansPercent = PR_FALSE;
|
||||
PRInt32 spanX;
|
||||
|
||||
// see if any of the spanned cols are percent based
|
||||
for (spanX = 0; spanX < colSpan; spanX++) {
|
||||
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
|
||||
@ -1036,7 +1036,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
|
||||
nscoord spanTotal = 0;
|
||||
nscoord divisor = 0;
|
||||
nscoord spanCellSpacing = 0;
|
||||
PRInt32 spanX;
|
||||
|
||||
for (spanX = 0; spanX < colSpan; spanX++) {
|
||||
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
|
||||
nscoord colWidth = colFrame->GetWidth(MIN_CON);
|
||||
|
@ -28,8 +28,8 @@
|
||||
|
||||
nsTableColFrame::nsTableColFrame()
|
||||
: nsFrame(),
|
||||
mIsAnonymous(PR_FALSE),
|
||||
mProportion(WIDTH_NOT_SET),
|
||||
mIsAnonymous(PR_FALSE),
|
||||
mNonPercentSpansPercent(PR_FALSE)
|
||||
{
|
||||
// note that all fields are initialized to 0 by nsFrame::operator new
|
||||
|
Loading…
x
Reference in New Issue
Block a user