diff --git a/layout/mathml/base/src/nsMathMLmiFrame.cpp b/layout/mathml/base/src/nsMathMLmiFrame.cpp index 82eef5781597..9baad81637d8 100644 --- a/layout/mathml/base/src/nsMathMLmiFrame.cpp +++ b/layout/mathml/base/src/nsMathMLmiFrame.cpp @@ -132,8 +132,8 @@ nsMathMLmiFrame::SetInitialChildList(nsIPresContext* aPresContext, : ":-moz-math-font-style-normal"; nsCOMPtr fontAtom(getter_AddRefs(NS_NewAtom(fontStyle))); nsCOMPtr newStyleContext; - aPresContext.ResolvePseudoStyleContextFor(mContent, fontAtom, mStyleContext, - PR_FALSE, getter_AddRefs(newStyleContext)); + aPresContext->ResolvePseudoStyleContextFor(mContent, fontAtom, mStyleContext, + PR_FALSE, getter_AddRefs(newStyleContext)); if (newStyleContext && newStyleContext.get() != mStyleContext) { @@ -147,7 +147,7 @@ nsMathMLmiFrame::SetInitialChildList(nsIPresContext* aPresContext, nsIFrame* childFrame = firstChild; while (childFrame) { childFrame->SetParent(newFrame); - aPresContext.ReParentStyleContext(childFrame, newStyleContext); + aPresContext->ReParentStyleContext(childFrame, newStyleContext); childFrame->GetNextSibling(&childFrame); } newFrame->SetInitialChildList(aPresContext, nsnull, firstChild); diff --git a/layout/mathml/base/src/nsMathMLmrootFrame.cpp b/layout/mathml/base/src/nsMathMLmrootFrame.cpp index f616994c5cd3..a092e2e3465b 100644 --- a/layout/mathml/base/src/nsMathMLmrootFrame.cpp +++ b/layout/mathml/base/src/nsMathMLmrootFrame.cpp @@ -87,7 +87,7 @@ nsMathMLmrootFrame::Init(nsIPresContext* aPresContext, } NS_IMETHODIMP -nsMathMLmrootFrame::Paint(nsIPresContext& aPresContext, +nsMathMLmrootFrame::Paint(nsIPresContext* aPresContext, nsIRenderingContext& aRenderingContext, const nsRect& aDirtyRect, nsFramePaintLayer aWhichLayer) @@ -108,7 +108,7 @@ nsMathMLmrootFrame::Paint(nsIPresContext& aPresContext, } NS_IMETHODIMP -nsMathMLmrootFrame::Reflow(nsIPresContext& aPresContext, +nsMathMLmrootFrame::Reflow(nsIPresContext* aPresContext, nsHTMLReflowMetrics& aDesiredSize, const nsHTMLReflowState& aReflowState, nsReflowStatus& aStatus) @@ -250,8 +250,8 @@ nsMathMLmrootFrame::Reflow(nsIPresContext& aPresContext, rect[3].x += dx; // x-origin of bar } - child[0]->SetRect(&aPresContext, rect[0]); - child[1]->SetRect(&aPresContext, rect[1]); + child[0]->SetRect(aPresContext, rect[0]); + child[1]->SetRect(aPresContext, rect[1]); mSqrChar.SetRect(rect[2]); mBarChar.SetRect(rect[3]); diff --git a/layout/mathml/base/src/nsMathMLmrootFrame.h b/layout/mathml/base/src/nsMathMLmrootFrame.h index 09d64ec285f6..3dd417c6ce32 100644 --- a/layout/mathml/base/src/nsMathMLmrootFrame.h +++ b/layout/mathml/base/src/nsMathMLmrootFrame.h @@ -54,13 +54,13 @@ public: } NS_IMETHOD - Reflow(nsIPresContext& aPresContext, + Reflow(nsIPresContext* aPresContext, nsHTMLReflowMetrics& aDesiredSize, const nsHTMLReflowState& aReflowState, nsReflowStatus& aStatus); NS_IMETHOD - Paint(nsIPresContext& aPresContext, + Paint(nsIPresContext* aPresContext, nsIRenderingContext& aRenderingContext, const nsRect& aDirtyRect, nsFramePaintLayer aWhichLayer);