Changed SetView/GetView to take an additional argument which is the

pres context
This commit is contained in:
troy@netscape.com
1999-10-26 04:44:41 +00:00
parent 638cf44c67
commit b8ef6465be
240 changed files with 2258 additions and 1704 deletions

View File

@@ -271,7 +271,7 @@ nsFieldSetFrame::Paint(nsIPresContext& aPresContext,
if ((NS_FRAME_PAINT_LAYER_DEBUG == aWhichLayer) && GetShowFrameBorders()) {
nsIView* view;
GetView(&view);
GetView(&aPresContext, &view);
if (nsnull != view) {
aRenderingContext.SetColor(NS_RGB(0,0,255));
}
@@ -359,7 +359,7 @@ nsFieldSetFrame::Reflow(nsIPresContext& aPresContext,
nsRect contentRect(borderPadding.left,borderPadding.top + mLegendSpace,aDesiredSize.width ,aDesiredSize.height);
// Place the content area frame.
mContentFrame->SetRect(contentRect);
mContentFrame->SetRect(&aPresContext, contentRect);
if (mLegendFrame)
{
@@ -376,7 +376,7 @@ nsFieldSetFrame::Reflow(nsIPresContext& aPresContext,
// place the legend
nsRect actualLegendRect(mLegendRect);
actualLegendRect.Deflate(legendMargin);
mLegendFrame->SetRect(actualLegendRect);
mLegendFrame->SetRect(&aPresContext, actualLegendRect);
}
// Return our size and our result