adjust the starting column index always if a entire colgroup needs adjusted colindices bug 339315 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@200789 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
24f49e9636
commit
d4f48518a5
@ -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…
x
Reference in New Issue
Block a user