Added code so that TR VALIGN's will dump properly when content is dumped

This commit is contained in:
kipp 1998-07-13 21:16:51 +00:00
Родитель 8a28474764
Коммит 78d4f7fa5e
2 изменённых файлов: 18 добавлений и 0 удалений

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

@ -279,6 +279,21 @@ void nsTableRow::MapAttributesInto(nsIStyleContext* aContext,
}
}
nsContentAttr
nsTableRow::AttributeToString(nsIAtom* aAttribute,
nsHTMLValue& aValue,
nsString& aResult) const
{
nsContentAttr ca = eContentAttr_NotThere;
if (aAttribute == nsHTMLAtoms::valign) {
AlignParamToString(aValue, aResult);
ca = eContentAttr_HasValue;
}
else {
ca = nsTableContent::AttributeToString(aAttribute, aValue, aResult);
}
return ca;
}
nsresult
nsTableRow::CreateFrame(nsIPresContext* aPresContext,

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

@ -128,6 +128,9 @@ public:
protected:
PRBool IsTableCell(nsIContent * aContent) const;
virtual nsContentAttr AttributeToString(nsIAtom* aAttribute,
nsHTMLValue& aValue,
nsString& aResult) const;
};
#endif