Changed Reflow() member function to take a reference to a nsIPresContext

instead of a pointer
This commit is contained in:
troy
1998-07-15 02:53:09 +00:00
parent acd768ed2f
commit 26b49b4476
68 changed files with 272 additions and 282 deletions

View File

@@ -32,7 +32,7 @@ class nsObjectFrame : public nsObjectFrameSuper {
public:
nsObjectFrame(nsIContent* aContent, nsIFrame* aParentFrame);
NS_IMETHOD Reflow(nsIPresContext* aPresContext,
NS_IMETHOD Reflow(nsIPresContext& aPresContext,
nsReflowMetrics& aDesiredSize,
const nsReflowState& aReflowState,
nsReflowStatus& aStatus);
@@ -170,13 +170,13 @@ nsObjectFrame::GetDesiredSize(nsIPresContext* aPresContext,
}
NS_IMETHODIMP
nsObjectFrame::Reflow(nsIPresContext* aPresContext,
nsObjectFrame::Reflow(nsIPresContext& aPresContext,
nsReflowMetrics& aDesiredSize,
const nsReflowState& aReflowState,
nsReflowStatus& aStatus)
{
// Get our desired size
GetDesiredSize(aPresContext, aReflowState, aDesiredSize);
GetDesiredSize(&aPresContext, aReflowState, aDesiredSize);
// XXX deal with border and padding the usual way...wrap it up!
@@ -184,7 +184,7 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
nsIView* view;
GetView(view);
if (nsnull == view) {
nsresult rv = CreateWidget(aPresContext, aDesiredSize.width,
nsresult rv = CreateWidget(&aPresContext, aDesiredSize.width,
aDesiredSize.height);
if (NS_OK != rv) {
return rv;