diff --git a/layout/base/nsIPresShell.h b/layout/base/nsIPresShell.h index ffb20ea95800..9f1fa2406436 100644 --- a/layout/base/nsIPresShell.h +++ b/layout/base/nsIPresShell.h @@ -620,7 +620,7 @@ public: * @return current state of non text selection, * as set by SetDisplayNonTextSelection */ - virtual NS_HIDDEN_(PRInt16) GetSelectionFlags() = 0; + PRInt16 GetSelectionFlags() const { return mSelectionFlags; } virtual nsISelection* GetCurrentSelection(SelectionType aType) = 0; @@ -667,16 +667,16 @@ public: /** * Determine if reflow is currently locked - * @param aIsReflowLocked returns PR_TRUE if reflow is locked, PR_FALSE otherwise + * returns PR_TRUE if reflow is locked, PR_FALSE otherwise */ - virtual NS_HIDDEN_(PRBool) IsReflowLocked() const = 0; + PRBool IsReflowLocked() const { return mIsReflowing; } /** * Called to find out if painting is suppressed for this presshell. If it is suppressd, * we don't allow the painting of any layer but the background, and we don't * recur into our children. */ - virtual NS_HIDDEN_(PRBool) IsPaintingSuppressed() const = 0; + PRBool IsPaintingSuppressed() const { return mPaintingSuppressed; } /** * Unsuppress painting. @@ -1011,9 +1011,13 @@ protected: nsIFrame* mDrawEventTargetFrame; #endif + PRInt16 mSelectionFlags; + PRPackedBool mStylesHaveChanged; PRPackedBool mDidInitialReflow; PRPackedBool mIsDestroying; + PRPackedBool mIsReflowing; + PRPackedBool mPaintingSuppressed; // For all documents we initially lock down painting. #ifdef ACCESSIBILITY /** diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index f1cc65b49618..5819732bd086 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -741,7 +741,6 @@ public: virtual NS_HIDDEN_(nsresult) CaptureHistoryState(nsILayoutHistoryState** aLayoutHistoryState, PRBool aLeavingPage); - virtual NS_HIDDEN_(PRBool) IsPaintingSuppressed() const; virtual NS_HIDDEN_(void) UnsuppressPainting(); virtual NS_HIDDEN_(void) DisableThemeSupport(); @@ -759,7 +758,6 @@ public: virtual NS_HIDDEN_(nsIFrame*) GetEventTargetFrame(); virtual NS_HIDDEN_(already_AddRefed) GetEventTargetContent(nsEvent* aEvent); - virtual NS_HIDDEN_(PRBool) IsReflowLocked() const; virtual nsresult ReconstructFrames(void); virtual void Freeze(); @@ -823,7 +821,6 @@ public: NS_IMETHOD SetSelectionFlags(PRInt16 aInEnable); NS_IMETHOD GetSelectionFlags(PRInt16 *aOutEnable); - virtual NS_HIDDEN_(PRInt16) GetSelectionFlags(); // nsISelectionController @@ -1046,7 +1043,6 @@ protected: nsTArray mDirtyRoots; PRPackedBool mDocumentLoading; - PRPackedBool mIsReflowing; PRPackedBool mIgnoreFrameDestruction; PRPackedBool mHaveShutDown; @@ -1065,7 +1061,6 @@ protected: nscoord mLastAnchorScrollPositionY; nsRefPtr mCaret; nsRefPtr mOriginalCaret; - PRInt16 mSelectionFlags; nsPresArena mFrameArena; StackArena mStackArena; nsCOMPtr mDragService; @@ -1188,7 +1183,6 @@ protected: PRPackedBool mIsThemeSupportDisabled; // Whether or not form controls should use nsITheme in this shell. PRPackedBool mIsDocumentGone; // We've been disconnected from the document. - PRPackedBool mPaintingSuppressed; // For all documents we initially lock down painting. // We will refuse to paint the document until either // (a) our timer fires or (b) all frames are constructed. PRPackedBool mShouldUnsuppressPainting; // Indicates that it is safe to unlock painting once all pending @@ -2869,11 +2863,6 @@ NS_IMETHODIMP PresShell::GetSelectionFlags(PRInt16 *aOutEnable) return NS_OK; } -PRInt16 PresShell::GetSelectionFlags() -{ - return mSelectionFlags; -} - //implementation of nsISelectionController NS_IMETHODIMP @@ -4393,12 +4382,6 @@ PresShell::CaptureHistoryState(nsILayoutHistoryState** aState, PRBool aLeavingPa return NS_OK; } -PRBool -PresShell::IsPaintingSuppressed() const -{ - return mPaintingSuppressed; -} - void PresShell::UnsuppressAndInvalidate() { @@ -4695,12 +4678,6 @@ PresShell::FlushPendingNotifications(mozFlushType aType) } } -PRBool -PresShell::IsReflowLocked() const -{ - return mIsReflowing; -} - void PresShell::CharacterDataChanged(nsIDocument *aDocument, nsIContent* aContent,