зеркало из https://github.com/mozilla/gecko-dev.git
Added code so that TR VALIGN's will dump properly when content is dumped
This commit is contained in:
Родитель
8a28474764
Коммит
78d4f7fa5e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче