From 6e536461e8057df4489e0649336bd6af61f932bc Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 28 Sep 2006 01:04:46 +0000 Subject: [PATCH] Make mtdInnerFrame more like the inner frame of non-MathML table cells. Bug 354510, r+sr=rbs --- layout/mathml/base/src/nsMathMLmtableFrame.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/mathml/base/src/nsMathMLmtableFrame.h b/layout/mathml/base/src/nsMathMLmtableFrame.h index ab0b377d14ec..8db630418d7b 100644 --- a/layout/mathml/base/src/nsMathMLmtableFrame.h +++ b/layout/mathml/base/src/nsMathMLmtableFrame.h @@ -307,7 +307,10 @@ public: virtual PRBool IsFrameOfType(PRUint32 aFlags) const; protected: - nsMathMLmtdInnerFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {} + nsMathMLmtdInnerFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) { + // Set the right bits -- see what NS_NewTableCellInnerFrame does + AddStateBits(NS_BLOCK_SPACE_MGR | NS_BLOCK_MARGIN_ROOT); + } virtual ~nsMathMLmtdInnerFrame(); virtual PRIntn GetSkipSides() const { return 0; }