Added static method for getting the absolute rect in twips and pixels

moved from nsComboboxControlFrame.cpp
r=dcone b=18895


git-svn-id: svn://10.0.0.236/trunk@63588 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2000-03-21 15:18:07 +00:00
parent 8abff6d9ea
commit 5ef540aa99
4 changed files with 182 additions and 0 deletions

View File

@@ -243,8 +243,20 @@ public:
const nsRect& aDirtyRect,
const nsRect& aRect);
/**
* Helper routine to that returns the height of the screen
*
*/
static nsresult GetScreenHeight(nsIPresContext* aPresContext, nscoord& aHeight);
/**
* Helper method to get the absolute position of a frame
*
*/
static nsresult GetAbsoluteFramePosition(nsIPresContext* aPresContext,
nsIFrame *aFrame,
nsRect& aAbsoluteTwipsRect,
nsRect& aAbsolutePixelRect);
protected:
virtual ~nsFormControlFrame();