зеркало из https://github.com/mozilla/pjs.git
Added function GetClipView()
This commit is contained in:
Родитель
0b1c356bfa
Коммит
c1987aeb49
|
@ -203,6 +203,11 @@ public:
|
|||
*/
|
||||
NS_IMETHOD ScrollByPages(PRInt32 aNumPages) = 0;
|
||||
|
||||
/**
|
||||
* Returns the clip view
|
||||
*/
|
||||
NS_IMETHOD GetClipView(const nsIView** aClipView) const = 0;
|
||||
|
||||
private:
|
||||
NS_IMETHOD_(nsrefcnt) AddRef(void) = 0;
|
||||
NS_IMETHOD_(nsrefcnt) Release(void) = 0;
|
||||
|
|
|
@ -607,7 +607,13 @@ NS_IMETHODIMP nsScrollingView :: SetVisibility(nsViewVisibility aVisibility)
|
|||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsScrollingView :: GetClipView(const nsIView** aClipView) const
|
||||
{
|
||||
NS_PRECONDITION(aClipView, "null pointer");
|
||||
*aClipView = mClipView;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void nsScrollingView :: HandleScrollEvent(nsGUIEvent *aEvent, PRUint32 aEventFlags)
|
||||
{
|
||||
|
@ -1087,7 +1093,7 @@ NS_IMETHODIMP nsScrollingView :: ComputeScrollOffsets(PRBool aAdjustWidgets)
|
|||
// of a problem.
|
||||
if (0 == oldsizey)
|
||||
mOffsetY = 0;
|
||||
else
|
||||
else
|
||||
{
|
||||
mOffsetY = NSIntPixelsToTwips(NSTwipsToIntPixels(nscoord(((float)oldpos * mSizeY) / oldsizey), scale), p2t);
|
||||
|
||||
|
|
|
@ -74,6 +74,8 @@ public:
|
|||
NS_IMETHOD GetLineHeight(nscoord *aHeight);
|
||||
NS_IMETHOD ScrollByLines(PRInt32 aNumLines);
|
||||
NS_IMETHOD ScrollByPages(PRInt32 aNumPages);
|
||||
|
||||
NS_IMETHOD GetClipView(const nsIView** aClipView) const;
|
||||
|
||||
//locals
|
||||
void HandleScrollEvent(nsGUIEvent *aEvent, PRUint32 aEventFlags);
|
||||
|
|
Загрузка…
Ссылка в новой задаче