зеркало из https://github.com/mozilla/pjs.git
adjust col frames instead of asserting that the number of cols is wrong bug 347725 r/sr=bzbarsky
This commit is contained in:
Родитель
f5904b1cdb
Коммит
98fc3b730b
|
@ -2659,7 +2659,10 @@ nsTableFrame::RemoveFrame(nsIAtom* aListName,
|
|||
cellMap->AddColsAtEnd(numColsNotRemoved);
|
||||
}
|
||||
}
|
||||
else NS_ASSERTION(numColsInCache == numColsInMap, "cell map has too many cols");
|
||||
else if (numColsInCache < numColsInMap) {
|
||||
CreateAnonymousColFrames(numColsInMap - numColsInCache,
|
||||
eColAnonymousCell, PR_TRUE);
|
||||
}
|
||||
// XXX This could probably be optimized with much effort
|
||||
SetNeedStrategyInit(PR_TRUE);
|
||||
AppendDirtyReflowCommand(this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче