mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1454503: Remove unused nsFrameManager::mIsDestroyingFrames. r=xidorn
MozReview-Commit-ID: 4105FqU8Xxm
This commit is contained in:
parent
14e4bbb398
commit
467bef5590
@ -102,9 +102,6 @@ void
|
||||
nsFrameManager::RemoveFrame(ChildListID aListID,
|
||||
nsIFrame* aOldFrame)
|
||||
{
|
||||
bool wasDestroyingFrames = mIsDestroyingFrames;
|
||||
mIsDestroyingFrames = true;
|
||||
|
||||
// In case the reflow doesn't invalidate anything since it just leaves
|
||||
// a gap where the old frame was, we invalidate it here. (This is
|
||||
// reasonably likely to happen when removing a last child in a way
|
||||
@ -128,8 +125,6 @@ nsFrameManager::RemoveFrame(ChildListID aListID,
|
||||
} else {
|
||||
parentFrame->RemoveFrame(aListID, aOldFrame);
|
||||
}
|
||||
|
||||
mIsDestroyingFrames = wasDestroyingFrames;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -37,14 +37,11 @@ public:
|
||||
explicit nsFrameManager(nsIPresShell* aPresShell)
|
||||
: mPresShell(aPresShell)
|
||||
, mRootFrame(nullptr)
|
||||
, mIsDestroyingFrames(false)
|
||||
{
|
||||
MOZ_ASSERT(mPresShell, "need a pres shell");
|
||||
}
|
||||
~nsFrameManager();
|
||||
|
||||
bool IsDestroyingFrames() const { return mIsDestroyingFrames; }
|
||||
|
||||
/*
|
||||
* Gets and sets the root frame (typically the viewport). The lifetime of the
|
||||
* root frame is controlled by the frame manager. When the frame manager is
|
||||
@ -104,7 +101,6 @@ protected:
|
||||
// weak link, because the pres shell owns us
|
||||
nsIPresShell* MOZ_NON_OWNING_REF mPresShell;
|
||||
nsIFrame* mRootFrame;
|
||||
bool mIsDestroyingFrames; // The frame manager is destroying some frame(s).
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user