diff --git a/layout/mathml/base/src/nsMathMLChar.h b/layout/mathml/base/src/nsMathMLChar.h index 13f945cfe51..03107ce6469 100644 --- a/layout/mathml/base/src/nsMathMLChar.h +++ b/layout/mathml/base/src/nsMathMLChar.h @@ -50,7 +50,7 @@ struct nsCharMetrics { descent = aCharMetrics.descent; } - nsCharMetrics(const nsReflowMetrics& aReflowMetrics) { + nsCharMetrics(const nsHTMLReflowMetrics& aReflowMetrics) { width = aReflowMetrics.width; height = aReflowMetrics.height; ascent = aReflowMetrics.ascent; diff --git a/layout/mathml/base/src/nsMathMLContainerFrame.cpp b/layout/mathml/base/src/nsMathMLContainerFrame.cpp index 3f65d30de33..63f60cc6b04 100644 --- a/layout/mathml/base/src/nsMathMLContainerFrame.cpp +++ b/layout/mathml/base/src/nsMathMLContainerFrame.cpp @@ -355,7 +355,7 @@ nsMathMLContainerFrame::SetInitialChildList(nsIPresContext& aPresContext, if (inlineFrame) { // create a new anonymous block frame to wrap this child... nsIFrame* anonymous; - rv = NS_NewAnonymousBlockFrame(&anonymous); + rv = NS_NewBlockFrame(&anonymous); if (NS_FAILED(rv)) return rv; nsCOMPtr newStyleContext;