From 78d4f7fa5e5bf9bf4ef30c9c8dcc5d5fd8d2f937 Mon Sep 17 00:00:00 2001 From: kipp Date: Mon, 13 Jul 1998 21:16:51 +0000 Subject: [PATCH] Added code so that TR VALIGN's will dump properly when content is dumped --- layout/html/table/src/nsTableRow.cpp | 15 +++++++++++++++ layout/html/table/src/nsTableRow.h | 3 +++ 2 files changed, 18 insertions(+) diff --git a/layout/html/table/src/nsTableRow.cpp b/layout/html/table/src/nsTableRow.cpp index d4cf2ea67f20..47818a7eec6d 100644 --- a/layout/html/table/src/nsTableRow.cpp +++ b/layout/html/table/src/nsTableRow.cpp @@ -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, diff --git a/layout/html/table/src/nsTableRow.h b/layout/html/table/src/nsTableRow.h index 2816ad0b62fd..99c2a7fbfad6 100644 --- a/layout/html/table/src/nsTableRow.h +++ b/layout/html/table/src/nsTableRow.h @@ -128,6 +128,9 @@ public: protected: PRBool IsTableCell(nsIContent * aContent) const; + virtual nsContentAttr AttributeToString(nsIAtom* aAttribute, + nsHTMLValue& aValue, + nsString& aResult) const; }; #endif