mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
adjust the starting column index always if a entire colgroup needs adjusted colindices bug 339315 r/sr=bzbarsky
This commit is contained in:
parent
7b1e11248b
commit
12ffb8ee63
@ -72,10 +72,12 @@ void nsTableColGroupFrame::ResetColIndices(nsIFrame* aFirstColGroup,
|
||||
PRInt32 colIndex = aFirstColIndex;
|
||||
while (colGroupFrame) {
|
||||
if (nsLayoutAtoms::tableColGroupFrame == colGroupFrame->GetType()) {
|
||||
// reset the starting col index for the first cg only if
|
||||
// reset the starting col index for the first cg only if we should reset
|
||||
// the whole colgroup (aStartColFrame defaults to nsnull) or if
|
||||
// aFirstColIndex is smaller than the existing starting col index
|
||||
if ((colIndex != aFirstColIndex) ||
|
||||
(colIndex < colGroupFrame->GetStartColumnIndex())) {
|
||||
(colIndex < colGroupFrame->GetStartColumnIndex()) ||
|
||||
!aStartColFrame) {
|
||||
colGroupFrame->SetStartColumnIndex(colIndex);
|
||||
}
|
||||
nsIFrame* colFrame = aStartColFrame;
|
||||
|
Loading…
Reference in New Issue
Block a user