mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
bug 55789 - the col group frame increments its num cols before inserting the col into the table. a=buster, r=dcone.
This commit is contained in:
parent
ca062d6d3e
commit
45c48d4cce
@ -119,8 +119,8 @@ nsTableColGroupFrame::AddColsToTable(nsIPresContext& aPresContext,
|
||||
if (nsLayoutAtoms::tableColFrame == kidType) {
|
||||
((nsTableColFrame*)kidFrame)->SetColIndex(colIndex);
|
||||
if (!foundLastFrame) {
|
||||
tableFrame->InsertCol(aPresContext, (nsTableColFrame &)*kidFrame, colIndex);
|
||||
mColCount++;
|
||||
tableFrame->InsertCol(aPresContext, (nsTableColFrame &)*kidFrame, colIndex);
|
||||
}
|
||||
colIndex++;
|
||||
}
|
||||
|
@ -119,8 +119,8 @@ nsTableColGroupFrame::AddColsToTable(nsIPresContext& aPresContext,
|
||||
if (nsLayoutAtoms::tableColFrame == kidType) {
|
||||
((nsTableColFrame*)kidFrame)->SetColIndex(colIndex);
|
||||
if (!foundLastFrame) {
|
||||
tableFrame->InsertCol(aPresContext, (nsTableColFrame &)*kidFrame, colIndex);
|
||||
mColCount++;
|
||||
tableFrame->InsertCol(aPresContext, (nsTableColFrame &)*kidFrame, colIndex);
|
||||
}
|
||||
colIndex++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user