зеркало из https://github.com/mozilla/gecko-dev.git
Bug 253889: DeCOMtaminate nsIPresShell - make some methods const. r=roc
--HG-- extra : rebase_source : 94167aa329d4021677027f6bb6b1674d278f53f5
This commit is contained in:
Родитель
c0986d9bda
Коммит
3b3307f212
|
@ -235,9 +235,9 @@ public:
|
|||
|
||||
nsIDocument* GetDocument() const { return mDocument; }
|
||||
|
||||
nsPresContext* GetPresContext() { return mPresContext; }
|
||||
nsPresContext* GetPresContext() const { return mPresContext; }
|
||||
|
||||
nsIViewManager* GetViewManager() { return mViewManager; }
|
||||
nsIViewManager* GetViewManager() const { return mViewManager; }
|
||||
|
||||
#ifdef _IMPL_NS_LAYOUT
|
||||
nsStyleSet* StyleSet() { return mStyleSet; }
|
||||
|
@ -438,7 +438,7 @@ public:
|
|||
* @param aIsSafeToFlush PR_TRUE if it is safe, PR_FALSE otherwise.
|
||||
*
|
||||
*/
|
||||
virtual NS_HIDDEN_(PRBool) IsSafeToFlush() = 0;
|
||||
virtual NS_HIDDEN_(PRBool) IsSafeToFlush() const = 0;
|
||||
|
||||
/**
|
||||
* Flush pending notifications of the type specified. This method
|
||||
|
|
|
@ -702,7 +702,7 @@ public:
|
|||
nsFrameState aBitToAdd);
|
||||
virtual NS_HIDDEN_(void) FrameNeedsToContinueReflow(nsIFrame *aFrame);
|
||||
virtual NS_HIDDEN_(void) CancelAllPendingReflows();
|
||||
virtual NS_HIDDEN_(PRBool) IsSafeToFlush();
|
||||
virtual NS_HIDDEN_(PRBool) IsSafeToFlush() const;
|
||||
virtual NS_HIDDEN_(void) FlushPendingNotifications(mozFlushType aType);
|
||||
|
||||
/**
|
||||
|
@ -4580,7 +4580,7 @@ PresShell::HandlePostedReflowCallbacks(PRBool aInterruptible)
|
|||
}
|
||||
|
||||
PRBool
|
||||
PresShell::IsSafeToFlush()
|
||||
PresShell::IsSafeToFlush() const
|
||||
{
|
||||
// Not safe if we are reflowing or in the middle of frame construction
|
||||
PRBool isSafeToFlush = !mIsReflowing &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче