mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1223228 - Remove unused nsFrameManagerBase::mStyleSet. r=dholbert
This commit is contained in:
parent
95d123a5d7
commit
edcec9eefe
@ -1453,10 +1453,9 @@ MoveChildrenTo(nsPresContext* aPresContext,
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
nsCSSFrameConstructor::nsCSSFrameConstructor(nsIDocument *aDocument,
|
||||
nsIPresShell *aPresShell,
|
||||
nsStyleSet* aStyleSet)
|
||||
: nsFrameManager(aPresShell, aStyleSet)
|
||||
nsCSSFrameConstructor::nsCSSFrameConstructor(nsIDocument* aDocument,
|
||||
nsIPresShell* aPresShell)
|
||||
: nsFrameManager(aPresShell)
|
||||
, mDocument(aDocument)
|
||||
, mRootElementFrame(nullptr)
|
||||
, mRootElementStyleFrame(nullptr)
|
||||
|
@ -55,8 +55,7 @@ public:
|
||||
|
||||
friend class mozilla::RestyleManager;
|
||||
|
||||
nsCSSFrameConstructor(nsIDocument *aDocument, nsIPresShell* aPresShell,
|
||||
nsStyleSet* aStyleSet);
|
||||
nsCSSFrameConstructor(nsIDocument* aDocument, nsIPresShell* aPresShell);
|
||||
~nsCSSFrameConstructor(void) {
|
||||
NS_ASSERTION(mUpdateCount == 0, "Dying in the middle of our own update?");
|
||||
}
|
||||
|
@ -78,7 +78,6 @@ static const PLDHashTableOps PlaceholderMapOps = {
|
||||
|
||||
nsFrameManagerBase::nsFrameManagerBase()
|
||||
: mPresShell(nullptr)
|
||||
, mStyleSet(nullptr)
|
||||
, mRootFrame(nullptr)
|
||||
, mPlaceholderMap(&PlaceholderMapOps, sizeof(PlaceholderMapEntry))
|
||||
, mUndisplayedMap(nullptr)
|
||||
|
@ -82,11 +82,9 @@ class nsFrameManager : public nsFrameManagerBase
|
||||
typedef mozilla::layout::FrameChildListID ChildListID;
|
||||
|
||||
public:
|
||||
nsFrameManager(nsIPresShell *aPresShell, nsStyleSet* aStyleSet) {
|
||||
explicit nsFrameManager(nsIPresShell* aPresShell) {
|
||||
mPresShell = aPresShell;
|
||||
mStyleSet = aStyleSet;
|
||||
MOZ_ASSERT(mPresShell, "need a pres shell");
|
||||
MOZ_ASSERT(mStyleSet, "need a style set");
|
||||
}
|
||||
~nsFrameManager();
|
||||
|
||||
|
@ -53,8 +53,6 @@ protected:
|
||||
|
||||
// weak link, because the pres shell owns us
|
||||
nsIPresShell* MOZ_NON_OWNING_REF mPresShell;
|
||||
// the pres shell owns the style set
|
||||
nsStyleSet* mStyleSet;
|
||||
nsIFrame* mRootFrame;
|
||||
PLDHashTable mPlaceholderMap;
|
||||
UndisplayedMap* mUndisplayedMap;
|
||||
|
@ -860,7 +860,7 @@ PresShell::Init(nsIDocument* aDocument,
|
||||
mViewManager = aViewManager;
|
||||
|
||||
// Create our frame constructor.
|
||||
mFrameConstructor = new nsCSSFrameConstructor(mDocument, this, aStyleSet);
|
||||
mFrameConstructor = new nsCSSFrameConstructor(mDocument, this);
|
||||
|
||||
mFrameManager = mFrameConstructor;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user