Removed includes; updated GetVisibleArea API

This commit is contained in:
kipp 1998-05-22 18:36:40 +00:00
parent ec47208d0c
commit f2ba7b689f
3 changed files with 8 additions and 24 deletions

View File

@ -17,20 +17,12 @@
*/
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsIContent.h"
#include "nsILinkHandler.h"
#include "nsIStyleContext.h"
#include "nsIStyleSet.h"
#include "nsIFontMetrics.h"
#include "nsFrameImageLoader.h"
#include "nsIImageManager.h"
#include "nsIImageGroup.h"
#include "nsIFrame.h"
#include "nsIRenderingContext.h"
#include "nsTransform2D.h"
#include "nsIDocument.h"
#include "nsIURL.h"
#include "nsString.h"
#define NOISY_IMAGES
@ -172,10 +164,10 @@ nsPresContext::GetDefaultFont(void)
return mDefaultFont;
}
nsRect
nsPresContext::GetVisibleArea()
void
nsPresContext::GetVisibleArea(nsRect& aResult)
{
return mVisibleArea;
aResult = mVisibleArea;
}
void

View File

@ -17,20 +17,12 @@
*/
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsIContent.h"
#include "nsILinkHandler.h"
#include "nsIStyleContext.h"
#include "nsIStyleSet.h"
#include "nsIFontMetrics.h"
#include "nsFrameImageLoader.h"
#include "nsIImageManager.h"
#include "nsIImageGroup.h"
#include "nsIFrame.h"
#include "nsIRenderingContext.h"
#include "nsTransform2D.h"
#include "nsIDocument.h"
#include "nsIURL.h"
#include "nsString.h"
#define NOISY_IMAGES
@ -172,10 +164,10 @@ nsPresContext::GetDefaultFont(void)
return mDefaultFont;
}
nsRect
nsPresContext::GetVisibleArea()
void
nsPresContext::GetVisibleArea(nsRect& aResult)
{
return mVisibleArea;
aResult = mVisibleArea;
}
void

View File

@ -25,7 +25,6 @@
#include "nsFrame.h"
#include "nsReflowCommand.h"
#include "nsIViewManager.h"
#include "nsIView.h"
#include "nsCRT.h"
#include "plhash.h"
@ -407,7 +406,8 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
mRootFrame->VerifyTree();
}
#endif
nsRect bounds = mPresContext->GetVisibleArea();
nsRect bounds;
mPresContext->GetVisibleArea(bounds);
nsSize maxSize(bounds.width, bounds.height);
nsReflowMetrics desiredSize;
nsReflowStatus status;