mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +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,
|
nsFrameManager::RemoveFrame(ChildListID aListID,
|
||||||
nsIFrame* aOldFrame)
|
nsIFrame* aOldFrame)
|
||||||
{
|
{
|
||||||
bool wasDestroyingFrames = mIsDestroyingFrames;
|
|
||||||
mIsDestroyingFrames = true;
|
|
||||||
|
|
||||||
// In case the reflow doesn't invalidate anything since it just leaves
|
// 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
|
// 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
|
// reasonably likely to happen when removing a last child in a way
|
||||||
@ -128,8 +125,6 @@ nsFrameManager::RemoveFrame(ChildListID aListID,
|
|||||||
} else {
|
} else {
|
||||||
parentFrame->RemoveFrame(aListID, aOldFrame);
|
parentFrame->RemoveFrame(aListID, aOldFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
mIsDestroyingFrames = wasDestroyingFrames;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@ -37,14 +37,11 @@ public:
|
|||||||
explicit nsFrameManager(nsIPresShell* aPresShell)
|
explicit nsFrameManager(nsIPresShell* aPresShell)
|
||||||
: mPresShell(aPresShell)
|
: mPresShell(aPresShell)
|
||||||
, mRootFrame(nullptr)
|
, mRootFrame(nullptr)
|
||||||
, mIsDestroyingFrames(false)
|
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(mPresShell, "need a pres shell");
|
MOZ_ASSERT(mPresShell, "need a pres shell");
|
||||||
}
|
}
|
||||||
~nsFrameManager();
|
~nsFrameManager();
|
||||||
|
|
||||||
bool IsDestroyingFrames() const { return mIsDestroyingFrames; }
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Gets and sets the root frame (typically the viewport). The lifetime of the
|
* 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
|
* 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
|
// weak link, because the pres shell owns us
|
||||||
nsIPresShell* MOZ_NON_OWNING_REF mPresShell;
|
nsIPresShell* MOZ_NON_OWNING_REF mPresShell;
|
||||||
nsIFrame* mRootFrame;
|
nsIFrame* mRootFrame;
|
||||||
bool mIsDestroyingFrames; // The frame manager is destroying some frame(s).
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user