Bug 1454503: Remove unused nsFrameManager::mIsDestroyingFrames. r=xidorn

MozReview-Commit-ID: 4105FqU8Xxm
This commit is contained in:
Emilio Cobos Álvarez 2018-04-17 00:29:24 +02:00
parent 14e4bbb398
commit 467bef5590
2 changed files with 0 additions and 9 deletions

View File

@ -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;
}
//----------------------------------------------------------------------

View File

@ -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