added storage in styleTable for a column's width contribution from cells that

have colspan>1.
This commit is contained in:
buster%netscape.com 1998-11-16 06:47:24 +00:00
Родитель 21e08756c0
Коммит e46627bcf6
4 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -617,6 +617,7 @@ void StyleTableImpl::ResetFrom(const nsStyleTable* aParent, nsIPresContext* aPre
mRules = NS_STYLE_TABLE_RULES_NONE;
mCellPadding.Reset();
mCellSpacing.Reset();
mSpanWidth.Reset();
if (nsnull!=aPresContext)
{
float p2t = aPresContext->GetPixelsToTwips();

Просмотреть файл

@ -168,6 +168,7 @@ struct nsStyleTable: public nsStyleStruct {
nsStyleCoord mCellPadding; // [reset]
nsStyleCoord mCellSpacing; // [reset]
PRInt32 mCols; // [reset] an integer if set, or see nsStyleConsts.h NS_STYLE_TABLE_COLS_*
nsStyleCoord mSpanWidth; // [reset] the amount of width this col gets from a spanning cell, if any
PRInt32 mSpan; // [reset] the number of columns spanned by a colgroup or col
protected:

Просмотреть файл

@ -617,6 +617,7 @@ void StyleTableImpl::ResetFrom(const nsStyleTable* aParent, nsIPresContext* aPre
mRules = NS_STYLE_TABLE_RULES_NONE;
mCellPadding.Reset();
mCellSpacing.Reset();
mSpanWidth.Reset();
if (nsnull!=aPresContext)
{
float p2t = aPresContext->GetPixelsToTwips();

Просмотреть файл

@ -617,6 +617,7 @@ void StyleTableImpl::ResetFrom(const nsStyleTable* aParent, nsIPresContext* aPre
mRules = NS_STYLE_TABLE_RULES_NONE;
mCellPadding.Reset();
mCellSpacing.Reset();
mSpanWidth.Reset();
if (nsnull!=aPresContext)
{
float p2t = aPresContext->GetPixelsToTwips();