fixed bug 1188. Colspans beyond the end of the table were adding entries
into the column cache, which is very, very bad.
This commit is contained in:
@@ -3035,7 +3035,7 @@ void nsTableFrame::BuildColumnCache( nsIPresContext& aPresContext,
|
||||
delete mColCache;
|
||||
}
|
||||
|
||||
mColCache = new ColumnInfoCache(mColCount);
|
||||
mColCache = new ColumnInfoCache(GetColCount());
|
||||
nsIFrame * childFrame = mFirstChild;
|
||||
while (nsnull!=childFrame)
|
||||
{ // in this loop, we cache column info and set column style info from cells in first row
|
||||
|
||||
@@ -3035,7 +3035,7 @@ void nsTableFrame::BuildColumnCache( nsIPresContext& aPresContext,
|
||||
delete mColCache;
|
||||
}
|
||||
|
||||
mColCache = new ColumnInfoCache(mColCount);
|
||||
mColCache = new ColumnInfoCache(GetColCount());
|
||||
nsIFrame * childFrame = mFirstChild;
|
||||
while (nsnull!=childFrame)
|
||||
{ // in this loop, we cache column info and set column style info from cells in first row
|
||||
|
||||
Reference in New Issue
Block a user