зеркало из https://github.com/mozilla/gecko-dev.git
Added IsPainting method to return whether the viewmanager is currently painting. bug 56335 a=buster@netscape.com r=vidur@netscape.com
This commit is contained in:
Родитель
b7f566951c
Коммит
1be2c2c7f2
|
@ -508,6 +508,14 @@ public:
|
|||
*/
|
||||
NS_IMETHOD AllowDoubleBuffering(PRBool aDoubleBuffer)=0;
|
||||
|
||||
/**
|
||||
* Indicate whehter the viewmanager is currently painting
|
||||
*
|
||||
* @param aPainting PR_TRUE if the viewmanager is painting
|
||||
* PR_FALSE otherwise
|
||||
*/
|
||||
NS_IMETHOD IsPainting(PRBool& aIsPainting)=0;
|
||||
|
||||
};
|
||||
|
||||
//when the refresh happens, should it be double buffered?
|
||||
|
|
|
@ -3636,6 +3636,13 @@ nsViewManager::AllowDoubleBuffering(PRBool aDoubleBuffer)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsViewManager::IsPainting(PRBool& aIsPainting)
|
||||
{
|
||||
aIsPainting = mPainting;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsViewManager::ProcessWidgetChanges(nsIView* aView)
|
||||
{
|
||||
|
|
|
@ -160,6 +160,7 @@ public:
|
|||
NS_IMETHOD IsCachingWidgetChanges(PRBool* aCaching);
|
||||
NS_IMETHOD CacheWidgetChanges(PRBool aCache);
|
||||
NS_IMETHOD AllowDoubleBuffering(PRBool aDoubleBuffer);
|
||||
NS_IMETHOD IsPainting(PRBool& aIsPainting);
|
||||
protected:
|
||||
virtual ~nsViewManager();
|
||||
|
||||
|
|
|
@ -2898,6 +2898,14 @@ nsViewManager2::AllowDoubleBuffering(PRBool aDoubleBuffer)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsViewManager2::IsPainting(PRBool& aIsPainting)
|
||||
{
|
||||
aIsPainting = mPainting;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsViewManager2::ProcessWidgetChanges(nsIView* aView)
|
||||
{
|
||||
|
|
|
@ -158,6 +158,7 @@ public:
|
|||
NS_IMETHOD IsCachingWidgetChanges(PRBool* aCaching);
|
||||
NS_IMETHOD CacheWidgetChanges(PRBool aCache);
|
||||
NS_IMETHOD AllowDoubleBuffering(PRBool aDoubleBuffer);
|
||||
NS_IMETHOD IsPainting(PRBool& aIsPainting);
|
||||
protected:
|
||||
virtual ~nsViewManager2();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче