mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Removed includes; updated GetVisibleArea API
This commit is contained in:
parent
ec47208d0c
commit
f2ba7b689f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user