[#ifdef MOZ_MATHML: NOT PART OF THE DEFAULT BUILD]. Update a MathML hook for <mtable>

This commit is contained in:
rbs%maths.uq.edu.au 2000-03-28 09:32:54 +00:00
parent 124c297b47
commit 217bec402a
2 changed files with 22 additions and 8 deletions

View File

@ -541,12 +541,19 @@ nsTreeCreator::CreateTableCellInnerFrame(nsIFrame** aNewFrame) {
// Structure used when creating MathML mtable frames
struct nsMathMLmtableCreator: public nsTableCreator {
nsresult CreateTableCellInnerFrame(nsIFrame** aNewFrame);
virtual nsresult CreateTableOuterFrame(nsIFrame** aNewFrame);
virtual nsresult CreateTableCellInnerFrame(nsIFrame** aNewFrame);
nsMathMLmtableCreator(nsIPresShell* aPresShell)
:nsTableCreator(aPresShell) {};
};
nsresult
nsMathMLmtableCreator::CreateTableOuterFrame(nsIFrame** aNewFrame)
{
return NS_NewMathMLmtableOuterFrame(mPresShell, aNewFrame);
}
nsresult
nsMathMLmtableCreator::CreateTableCellInnerFrame(nsIFrame** aNewFrame)
{
@ -5953,8 +5960,9 @@ nsCSSFrameConstructor::ConstructMathMLFrame(nsIPresShell* aPresShell,
if (aTag == nsMathMLAtoms::mi_)
rv = NS_NewMathMLmiFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mn_)
rv = NS_NewMathMLmnFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mtext_ ||
aTag == nsMathMLAtoms::mn_)
rv = NS_NewMathMLmtextFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mo_)
rv = NS_NewMathMLmoFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mfrac_)
@ -5992,7 +6000,6 @@ nsCSSFrameConstructor::ConstructMathMLFrame(nsIPresShell* aPresShell,
else if (aTag == nsMathMLAtoms::maction_)
rv = NS_NewMathMLmactionFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mrow_ ||
aTag == nsMathMLAtoms::mtext_ ||
aTag == nsMathMLAtoms::merror_ ||
aTag == nsMathMLAtoms::none_ ||
aTag == nsMathMLAtoms::mprescripts_ )

View File

@ -541,12 +541,19 @@ nsTreeCreator::CreateTableCellInnerFrame(nsIFrame** aNewFrame) {
// Structure used when creating MathML mtable frames
struct nsMathMLmtableCreator: public nsTableCreator {
nsresult CreateTableCellInnerFrame(nsIFrame** aNewFrame);
virtual nsresult CreateTableOuterFrame(nsIFrame** aNewFrame);
virtual nsresult CreateTableCellInnerFrame(nsIFrame** aNewFrame);
nsMathMLmtableCreator(nsIPresShell* aPresShell)
:nsTableCreator(aPresShell) {};
};
nsresult
nsMathMLmtableCreator::CreateTableOuterFrame(nsIFrame** aNewFrame)
{
return NS_NewMathMLmtableOuterFrame(mPresShell, aNewFrame);
}
nsresult
nsMathMLmtableCreator::CreateTableCellInnerFrame(nsIFrame** aNewFrame)
{
@ -5953,8 +5960,9 @@ nsCSSFrameConstructor::ConstructMathMLFrame(nsIPresShell* aPresShell,
if (aTag == nsMathMLAtoms::mi_)
rv = NS_NewMathMLmiFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mn_)
rv = NS_NewMathMLmnFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mtext_ ||
aTag == nsMathMLAtoms::mn_)
rv = NS_NewMathMLmtextFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mo_)
rv = NS_NewMathMLmoFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mfrac_)
@ -5992,7 +6000,6 @@ nsCSSFrameConstructor::ConstructMathMLFrame(nsIPresShell* aPresShell,
else if (aTag == nsMathMLAtoms::maction_)
rv = NS_NewMathMLmactionFrame(aPresShell, &newFrame);
else if (aTag == nsMathMLAtoms::mrow_ ||
aTag == nsMathMLAtoms::mtext_ ||
aTag == nsMathMLAtoms::merror_ ||
aTag == nsMathMLAtoms::none_ ||
aTag == nsMathMLAtoms::mprescripts_ )