mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
Bug 1116753 - Remove the nsIPresShell* param from remaining frame ctors that still have it. r=roc
This commit is contained in:
parent
2a88e0e176
commit
2e240075ec
@ -81,7 +81,7 @@ nsContainerFrame*
|
||||
NS_NewListControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
nsListControlFrame* it =
|
||||
new (aPresShell) nsListControlFrame(aPresShell, aPresShell->GetDocument(), aContext);
|
||||
new (aPresShell) nsListControlFrame(aContext);
|
||||
|
||||
it->AddStateBits(NS_FRAME_INDEPENDENT_SELECTION);
|
||||
|
||||
@ -91,9 +91,8 @@ NS_NewListControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsListControlFrame)
|
||||
|
||||
//---------------------------------------------------------
|
||||
nsListControlFrame::nsListControlFrame(
|
||||
nsIPresShell* aShell, nsIDocument* aDocument, nsStyleContext* aContext)
|
||||
: nsHTMLScrollFrame(aShell, aContext, false),
|
||||
nsListControlFrame::nsListControlFrame(nsStyleContext* aContext)
|
||||
: nsHTMLScrollFrame(aContext, false),
|
||||
mMightNeedSecondPass(false),
|
||||
mHasPendingInterruptAtStartOfReflow(false),
|
||||
mDropdownCanGrow(false),
|
||||
|
@ -315,7 +315,7 @@ protected:
|
||||
*/
|
||||
virtual void ResetList(bool aAllowScrolling);
|
||||
|
||||
nsListControlFrame(nsIPresShell* aShell, nsIDocument* aDocument, nsStyleContext* aContext);
|
||||
explicit nsListControlFrame(nsStyleContext* aContext);
|
||||
virtual ~nsListControlFrame();
|
||||
|
||||
/**
|
||||
|
@ -54,7 +54,7 @@ using namespace mozilla;
|
||||
nsIFrame*
|
||||
NS_NewTextControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsTextControlFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsTextControlFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsTextControlFrame)
|
||||
@ -99,7 +99,7 @@ private:
|
||||
};
|
||||
#endif
|
||||
|
||||
nsTextControlFrame::nsTextControlFrame(nsIPresShell* aShell, nsStyleContext* aContext)
|
||||
nsTextControlFrame::nsTextControlFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext)
|
||||
, mEditorHasBeenInitialized(false)
|
||||
, mIsProcessing(false)
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
|
||||
NS_DECLARE_FRAME_PROPERTY(ContentScrollPos, DestroyPoint)
|
||||
|
||||
nsTextControlFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsTextControlFrame(nsStyleContext* aContext);
|
||||
virtual ~nsTextControlFrame();
|
||||
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
@ -87,12 +87,12 @@ BuildScrollContainerLayers()
|
||||
nsHTMLScrollFrame*
|
||||
NS_NewHTMLScrollFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, bool aIsRoot)
|
||||
{
|
||||
return new (aPresShell) nsHTMLScrollFrame(aPresShell, aContext, aIsRoot);
|
||||
return new (aPresShell) nsHTMLScrollFrame(aContext, aIsRoot);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsHTMLScrollFrame)
|
||||
|
||||
nsHTMLScrollFrame::nsHTMLScrollFrame(nsIPresShell* aShell, nsStyleContext* aContext, bool aIsRoot)
|
||||
nsHTMLScrollFrame::nsHTMLScrollFrame(nsStyleContext* aContext, bool aIsRoot)
|
||||
: nsContainerFrame(aContext),
|
||||
mHelper(ALLOW_THIS_IN_INITIALIZER_LIST(this), aIsRoot)
|
||||
{
|
||||
@ -959,15 +959,15 @@ nsXULScrollFrame*
|
||||
NS_NewXULScrollFrame(nsIPresShell* aPresShell, nsStyleContext* aContext,
|
||||
bool aIsRoot, bool aClipAllDescendants)
|
||||
{
|
||||
return new (aPresShell) nsXULScrollFrame(aPresShell, aContext, aIsRoot,
|
||||
return new (aPresShell) nsXULScrollFrame(aContext, aIsRoot,
|
||||
aClipAllDescendants);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsXULScrollFrame)
|
||||
|
||||
nsXULScrollFrame::nsXULScrollFrame(nsIPresShell* aShell, nsStyleContext* aContext,
|
||||
nsXULScrollFrame::nsXULScrollFrame(nsStyleContext* aContext,
|
||||
bool aIsRoot, bool aClipAllDescendants)
|
||||
: nsBoxFrame(aShell, aContext, aIsRoot),
|
||||
: nsBoxFrame(aContext, aIsRoot),
|
||||
mHelper(ALLOW_THIS_IN_INITIALIZER_LIST(this), aIsRoot)
|
||||
{
|
||||
SetLayoutManager(nullptr);
|
||||
|
@ -813,7 +813,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsHTMLScrollFrame(nsIPresShell* aShell, nsStyleContext* aContext, bool aIsRoot);
|
||||
nsHTMLScrollFrame(nsStyleContext* aContext, bool aIsRoot);
|
||||
void SetSuppressScrollbarUpdate(bool aSuppress) {
|
||||
mHelper.mSupppressScrollbarUpdate = aSuppress;
|
||||
}
|
||||
@ -1175,7 +1175,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsXULScrollFrame(nsIPresShell* aShell, nsStyleContext* aContext, bool aIsRoot,
|
||||
nsXULScrollFrame(nsStyleContext* aContext, bool aIsRoot,
|
||||
bool aClipAllDescendants);
|
||||
|
||||
void ClampAndSetBounds(nsBoxLayoutState& aState,
|
||||
|
@ -23,7 +23,7 @@ NS_NewGridRowGroupFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout = NS_NewGridRowGroupLayout();
|
||||
return new (aPresShell) nsGridRowGroupFrame(aPresShell, aContext, layout);
|
||||
return new (aPresShell) nsGridRowGroupFrame(aContext, layout);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsGridRowGroupFrame)
|
||||
|
@ -35,10 +35,9 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
nsGridRowGroupFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext,
|
||||
nsGridRowGroupFrame(nsStyleContext* aContext,
|
||||
nsBoxLayout* aLayoutManager):
|
||||
nsBoxFrame(aPresShell, aContext, false, aLayoutManager) {}
|
||||
nsBoxFrame(aContext, false, aLayoutManager) {}
|
||||
|
||||
virtual nscoord GetFlex(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -23,8 +23,7 @@ NS_NewGridRowLeafFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout = NS_NewGridRowLeafLayout();
|
||||
return new (aPresShell) nsGridRowLeafFrame(aPresShell, aContext, false,
|
||||
layout);
|
||||
return new (aPresShell) nsGridRowLeafFrame(aContext, false, layout);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsGridRowLeafFrame)
|
||||
|
@ -39,11 +39,10 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
nsGridRowLeafFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext,
|
||||
nsGridRowLeafFrame(nsStyleContext* aContext,
|
||||
bool aIsRoot,
|
||||
nsBoxLayout* aLayoutManager):
|
||||
nsBoxFrame(aPresShell, aContext, aIsRoot, aLayoutManager) {}
|
||||
nsBoxFrame(aContext, aIsRoot, aLayoutManager) {}
|
||||
|
||||
virtual nsresult GetBorderAndPadding(nsMargin& aBorderAndPadding) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -97,13 +97,13 @@ nsIFrame* nsBoxFrame::mDebugChild = nullptr;
|
||||
nsIFrame*
|
||||
NS_NewBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, bool aIsRoot, nsBoxLayout* aLayoutManager)
|
||||
{
|
||||
return new (aPresShell) nsBoxFrame(aPresShell, aContext, aIsRoot, aLayoutManager);
|
||||
return new (aPresShell) nsBoxFrame(aContext, aIsRoot, aLayoutManager);
|
||||
}
|
||||
|
||||
nsIFrame*
|
||||
NS_NewBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsBoxFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsBoxFrame)
|
||||
@ -114,8 +114,7 @@ NS_QUERYFRAME_HEAD(nsBoxFrame)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
||||
#endif
|
||||
|
||||
nsBoxFrame::nsBoxFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext,
|
||||
nsBoxFrame::nsBoxFrame(nsStyleContext* aContext,
|
||||
bool aIsRoot,
|
||||
nsBoxLayout* aLayoutManager) :
|
||||
nsContainerFrame(aContext)
|
||||
@ -133,7 +132,7 @@ nsBoxFrame::nsBoxFrame(nsIPresShell* aPresShell,
|
||||
nsCOMPtr<nsBoxLayout> layout = aLayoutManager;
|
||||
|
||||
if (layout == nullptr) {
|
||||
NS_NewSprocketLayout(aPresShell, layout);
|
||||
NS_NewSprocketLayout(PresContext()->PresShell(), layout);
|
||||
}
|
||||
|
||||
SetLayoutManager(layout);
|
||||
|
@ -143,7 +143,7 @@ public:
|
||||
|
||||
virtual ~nsBoxFrame();
|
||||
|
||||
nsBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext, bool aIsRoot = false, nsBoxLayout* aLayoutManager = nullptr);
|
||||
explicit nsBoxFrame(nsStyleContext* aContext, bool aIsRoot = false, nsBoxLayout* aLayoutManager = nullptr);
|
||||
|
||||
// virtual so nsStackFrame, nsButtonBoxFrame, nsSliderFrame and nsMenuFrame
|
||||
// can override it
|
||||
|
@ -30,7 +30,7 @@ using namespace mozilla;
|
||||
nsIFrame*
|
||||
NS_NewButtonBoxFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsButtonBoxFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsButtonBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsButtonBoxFrame)
|
||||
|
@ -15,8 +15,8 @@ public:
|
||||
|
||||
friend nsIFrame* NS_NewButtonBoxFrame(nsIPresShell* aPresShell);
|
||||
|
||||
nsButtonBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
:nsBoxFrame(aPresShell, aContext, false) {
|
||||
explicit nsButtonBoxFrame(nsStyleContext* aContext)
|
||||
:nsBoxFrame(aContext, false) {
|
||||
UpdateMouseThrough();
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
nsIFrame*
|
||||
NS_NewDeckFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsDeckFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsDeckFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsDeckFrame)
|
||||
@ -44,11 +44,11 @@ NS_QUERYFRAME_HEAD(nsDeckFrame)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsBoxFrame)
|
||||
|
||||
|
||||
nsDeckFrame::nsDeckFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
: nsBoxFrame(aPresShell, aContext), mIndex(0)
|
||||
nsDeckFrame::nsDeckFrame(nsStyleContext* aContext)
|
||||
: nsBoxFrame(aContext), mIndex(0)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout;
|
||||
NS_NewStackLayout(aPresShell, layout);
|
||||
NS_NewStackLayout(PresContext()->PresShell(), layout);
|
||||
SetLayoutManager(layout);
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
nsDeckFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
explicit nsDeckFrame(nsStyleContext* aContext);
|
||||
|
||||
nsIFrame* GetSelectedBox();
|
||||
|
||||
|
@ -35,8 +35,8 @@ public:
|
||||
friend nsIFrame* NS_NewBoxFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
|
||||
nsDocElementBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext)
|
||||
:nsBoxFrame(aShell, aContext, true) {}
|
||||
explicit nsDocElementBoxFrame(nsStyleContext* aContext)
|
||||
:nsBoxFrame(aContext, true) {}
|
||||
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
@ -67,7 +67,7 @@ private:
|
||||
nsContainerFrame*
|
||||
NS_NewDocElementBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsDocElementBoxFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsDocElementBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsDocElementBoxFrame)
|
||||
|
@ -21,8 +21,8 @@ class nsGroupBoxFrame : public nsBoxFrame {
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsGroupBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aShell, aContext) {}
|
||||
explicit nsGroupBoxFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext) {}
|
||||
|
||||
virtual nsresult GetBorderAndPadding(nsMargin& aBorderAndPadding);
|
||||
|
||||
@ -75,7 +75,7 @@ public:
|
||||
nsIFrame*
|
||||
NS_NewGroupBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsGroupBoxFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsGroupBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsGroupBoxFrame)
|
||||
|
@ -119,7 +119,7 @@ FireImageDOMEvent(nsIContent* aContent, uint32_t aMessage)
|
||||
nsIFrame*
|
||||
NS_NewImageBoxFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsImageBoxFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsImageBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsImageBoxFrame)
|
||||
@ -143,8 +143,8 @@ nsImageBoxFrame::AttributeChanged(int32_t aNameSpaceID,
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsImageBoxFrame::nsImageBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsLeafBoxFrame(aShell, aContext),
|
||||
nsImageBoxFrame::nsImageBoxFrame(nsStyleContext* aContext):
|
||||
nsLeafBoxFrame(aContext),
|
||||
mIntrinsicSize(0,0),
|
||||
mRequestRegistered(false),
|
||||
mLoadFlags(nsIRequest::LOAD_NORMAL),
|
||||
|
@ -96,7 +96,7 @@ public:
|
||||
|
||||
already_AddRefed<mozilla::layers::ImageContainer> GetContainer(LayerManager* aManager);
|
||||
protected:
|
||||
nsImageBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsImageBoxFrame(nsStyleContext* aContext);
|
||||
|
||||
virtual void GetImageSize();
|
||||
|
||||
|
@ -35,12 +35,12 @@ using namespace mozilla;
|
||||
nsIFrame*
|
||||
NS_NewLeafBoxFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsLeafBoxFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsLeafBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsLeafBoxFrame)
|
||||
|
||||
nsLeafBoxFrame::nsLeafBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext)
|
||||
nsLeafBoxFrame::nsLeafBoxFrame(nsStyleContext* aContext)
|
||||
: nsLeafFrame(aContext)
|
||||
{
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ protected:
|
||||
|
||||
virtual nscoord GetIntrinsicISize() MOZ_OVERRIDE;
|
||||
|
||||
nsLeafBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsLeafBoxFrame(nsStyleContext* aContext);
|
||||
|
||||
private:
|
||||
|
||||
|
@ -139,10 +139,9 @@ NS_IMPL_ISUPPORTS(nsListScrollSmoother, nsITimerCallback)
|
||||
|
||||
/////////////// nsListBoxBodyFrame //////////////////
|
||||
|
||||
nsListBoxBodyFrame::nsListBoxBodyFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext,
|
||||
nsListBoxBodyFrame::nsListBoxBodyFrame(nsStyleContext* aContext,
|
||||
nsBoxLayout* aLayoutManager)
|
||||
: nsBoxFrame(aPresShell, aContext, false, aLayoutManager),
|
||||
: nsBoxFrame(aContext, false, aLayoutManager),
|
||||
mTopFrame(nullptr),
|
||||
mBottomFrame(nullptr),
|
||||
mLinkupFrame(nullptr),
|
||||
@ -1526,7 +1525,7 @@ nsIFrame*
|
||||
NS_NewListBoxBodyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout = NS_NewListBoxLayout();
|
||||
return new (aPresShell) nsListBoxBodyFrame(aPresShell, aContext, layout);
|
||||
return new (aPresShell) nsListBoxBodyFrame(aContext, layout);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsListBoxBodyFrame)
|
||||
|
@ -24,7 +24,7 @@ class nsListBoxBodyFrame MOZ_FINAL : public nsBoxFrame,
|
||||
public nsIScrollbarMediator,
|
||||
public nsIReflowCallback
|
||||
{
|
||||
nsListBoxBodyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext,
|
||||
nsListBoxBodyFrame(nsStyleContext* aContext,
|
||||
nsBoxLayout* aLayoutManager);
|
||||
virtual ~nsListBoxBodyFrame();
|
||||
|
||||
|
@ -14,11 +14,10 @@
|
||||
#include "nsBoxLayout.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
nsListItemFrame::nsListItemFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext,
|
||||
nsListItemFrame::nsListItemFrame(nsStyleContext* aContext,
|
||||
bool aIsRoot,
|
||||
nsBoxLayout* aLayoutManager)
|
||||
: nsGridRowLeafFrame(aPresShell, aContext, aIsRoot, aLayoutManager)
|
||||
: nsGridRowLeafFrame(aContext, aIsRoot, aLayoutManager)
|
||||
{
|
||||
}
|
||||
|
||||
@ -64,7 +63,7 @@ NS_NewListItemFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return new (aPresShell) nsListItemFrame(aPresShell, aContext, false, layout);
|
||||
return new (aPresShell) nsListItemFrame(aContext, false, layout);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsListItemFrame)
|
||||
|
@ -26,10 +26,9 @@ public:
|
||||
virtual nsSize GetPrefSize(nsBoxLayoutState& aState) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsListItemFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext *aContext,
|
||||
bool aIsRoot = false,
|
||||
nsBoxLayout* aLayoutManager = nullptr);
|
||||
explicit nsListItemFrame(nsStyleContext *aContext,
|
||||
bool aIsRoot = false,
|
||||
nsBoxLayout* aLayoutManager = nullptr);
|
||||
virtual ~nsListItemFrame();
|
||||
|
||||
}; // class nsListItemFrame
|
||||
|
@ -37,7 +37,7 @@ using namespace mozilla;
|
||||
nsIFrame*
|
||||
NS_NewMenuBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsMenuBarFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsMenuBarFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsMenuBarFrame)
|
||||
@ -49,8 +49,8 @@ NS_QUERYFRAME_TAIL_INHERITING(nsBoxFrame)
|
||||
//
|
||||
// nsMenuBarFrame cntr
|
||||
//
|
||||
nsMenuBarFrame::nsMenuBarFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aShell, aContext),
|
||||
nsMenuBarFrame::nsMenuBarFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext),
|
||||
mMenuBarListener(nullptr),
|
||||
mStayActive(false),
|
||||
mIsActive(false),
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsMenuBarFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsMenuBarFrame(nsStyleContext* aContext);
|
||||
|
||||
// nsMenuParent interface
|
||||
virtual nsMenuFrame* GetCurrentMenuItem() MOZ_OVERRIDE;
|
||||
|
@ -155,7 +155,7 @@ protected:
|
||||
nsIFrame*
|
||||
NS_NewMenuFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
nsMenuFrame* it = new (aPresShell) nsMenuFrame (aPresShell, aContext);
|
||||
nsMenuFrame* it = new (aPresShell) nsMenuFrame(aContext);
|
||||
it->SetIsMenu(true);
|
||||
return it;
|
||||
}
|
||||
@ -163,7 +163,7 @@ NS_NewMenuFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
nsIFrame*
|
||||
NS_NewMenuItemFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
nsMenuFrame* it = new (aPresShell) nsMenuFrame (aPresShell, aContext);
|
||||
nsMenuFrame* it = new (aPresShell) nsMenuFrame(aContext);
|
||||
it->SetIsMenu(false);
|
||||
return it;
|
||||
}
|
||||
@ -174,8 +174,8 @@ NS_QUERYFRAME_HEAD(nsMenuFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsMenuFrame)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsBoxFrame)
|
||||
|
||||
nsMenuFrame::nsMenuFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aShell, aContext),
|
||||
nsMenuFrame::nsMenuFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext),
|
||||
mIsMenu(false),
|
||||
mChecked(false),
|
||||
mIgnoreAccelTextChange(false),
|
||||
|
@ -75,7 +75,7 @@ private:
|
||||
class nsMenuFrame MOZ_FINAL : public nsBoxFrame
|
||||
{
|
||||
public:
|
||||
nsMenuFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsMenuFrame(nsStyleContext* aContext);
|
||||
|
||||
NS_DECL_QUERYFRAME_TARGET(nsMenuFrame)
|
||||
NS_DECL_QUERYFRAME
|
||||
|
@ -67,7 +67,7 @@ int8_t nsMenuPopupFrame::sDefaultLevelIsTop = -1;
|
||||
nsIFrame*
|
||||
NS_NewMenuPopupFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsMenuPopupFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsMenuPopupFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsMenuPopupFrame)
|
||||
@ -79,8 +79,8 @@ NS_QUERYFRAME_TAIL_INHERITING(nsBoxFrame)
|
||||
//
|
||||
// nsMenuPopupFrame ctor
|
||||
//
|
||||
nsMenuPopupFrame::nsMenuPopupFrame(nsIPresShell* aShell, nsStyleContext* aContext)
|
||||
:nsBoxFrame(aShell, aContext),
|
||||
nsMenuPopupFrame::nsMenuPopupFrame(nsStyleContext* aContext)
|
||||
:nsBoxFrame(aContext),
|
||||
mCurrentMenu(nullptr),
|
||||
mPrefSize(-1, -1),
|
||||
mLastClientOffset(0, 0),
|
||||
|
@ -155,7 +155,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsMenuPopupFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsMenuPopupFrame(nsStyleContext* aContext);
|
||||
|
||||
// nsMenuParent interface
|
||||
virtual nsMenuFrame* GetCurrentMenuItem() MOZ_OVERRIDE;
|
||||
|
@ -17,7 +17,7 @@
|
||||
nsIFrame*
|
||||
NS_NewPopupSetFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsPopupSetFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsPopupSetFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsPopupSetFrame)
|
||||
|
@ -18,8 +18,8 @@ class nsPopupSetFrame : public nsBoxFrame
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsPopupSetFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aShell, aContext) {}
|
||||
explicit nsPopupSetFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext) {}
|
||||
|
||||
~nsPopupSetFrame() {}
|
||||
|
||||
|
@ -63,7 +63,7 @@ nsReflowFrameRunnable::Run()
|
||||
nsIFrame*
|
||||
NS_NewProgressMeterFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsProgressMeterFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsProgressMeterFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsProgressMeterFrame)
|
||||
|
@ -38,8 +38,8 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsProgressMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) :
|
||||
nsBoxFrame(aPresShell, aContext), mNeedsReflowCallback(true) {}
|
||||
explicit nsProgressMeterFrame(nsStyleContext* aContext) :
|
||||
nsBoxFrame(aContext), mNeedsReflowCallback(true) {}
|
||||
virtual ~nsProgressMeterFrame();
|
||||
|
||||
bool mNeedsReflowCallback;
|
||||
|
@ -38,13 +38,13 @@ using namespace mozilla;
|
||||
nsIFrame*
|
||||
NS_NewResizerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsResizerFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsResizerFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsResizerFrame)
|
||||
|
||||
nsResizerFrame::nsResizerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
:nsTitleBarFrame(aPresShell, aContext)
|
||||
nsResizerFrame::nsResizerFrame(nsStyleContext* aContext)
|
||||
:nsTitleBarFrame(aContext)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ public:
|
||||
|
||||
friend nsIFrame* NS_NewResizerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
|
||||
nsResizerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
explicit nsResizerFrame(nsStyleContext* aContext);
|
||||
|
||||
virtual nsresult HandleEvent(nsPresContext* aPresContext,
|
||||
mozilla::WidgetGUIEvent* aEvent,
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
|
||||
friend nsIFrame* NS_NewBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
|
||||
nsRootBoxFrame(nsIPresShell* aShell, nsStyleContext *aContext);
|
||||
nsRootBoxFrame(nsStyleContext *aContext);
|
||||
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
@ -108,18 +108,18 @@ protected:
|
||||
nsContainerFrame*
|
||||
NS_NewRootBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsRootBoxFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsRootBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsRootBoxFrame)
|
||||
|
||||
nsRootBoxFrame::nsRootBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aShell, aContext, true)
|
||||
nsRootBoxFrame::nsRootBoxFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext, true)
|
||||
{
|
||||
mPopupSetFrame = nullptr;
|
||||
|
||||
nsCOMPtr<nsBoxLayout> layout;
|
||||
NS_NewStackLayout(aShell, layout);
|
||||
NS_NewStackLayout(PresContext()->PresShell(), layout);
|
||||
SetLayoutManager(layout);
|
||||
}
|
||||
|
||||
|
@ -41,8 +41,8 @@ public:
|
||||
nsEventStatus* aEventStatus) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsAutoRepeatBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext):
|
||||
nsButtonBoxFrame(aPresShell, aContext) {}
|
||||
explicit nsAutoRepeatBoxFrame(nsStyleContext* aContext):
|
||||
nsButtonBoxFrame(aContext) {}
|
||||
|
||||
void StartRepeat() {
|
||||
if (IsActivatedOnHover()) {
|
||||
@ -68,7 +68,7 @@ protected:
|
||||
nsIFrame*
|
||||
NS_NewAutoRepeatBoxFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsAutoRepeatBoxFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsAutoRepeatBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsAutoRepeatBoxFrame)
|
||||
|
@ -33,7 +33,7 @@ using namespace mozilla;
|
||||
nsIFrame*
|
||||
NS_NewScrollbarButtonFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsScrollbarButtonFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsScrollbarButtonFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsScrollbarButtonFrame)
|
||||
|
@ -25,8 +25,8 @@ class nsScrollbarButtonFrame : public nsButtonBoxFrame
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsScrollbarButtonFrame(nsIPresShell* aPresShell, nsStyleContext* aContext):
|
||||
nsButtonBoxFrame(aPresShell, aContext), mCursorOnThis(false) {}
|
||||
explicit nsScrollbarButtonFrame(nsStyleContext* aContext):
|
||||
nsButtonBoxFrame(aContext), mCursorOnThis(false) {}
|
||||
|
||||
// Overrides
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
@ -29,9 +29,9 @@ using namespace mozilla;
|
||||
// Creates a new scrollbar frame and returns it
|
||||
//
|
||||
nsIFrame*
|
||||
NS_NewScrollbarFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
NS_NewScrollbarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsScrollbarFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsScrollbarFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsScrollbarFrame)
|
||||
|
@ -20,8 +20,8 @@ nsIFrame* NS_NewScrollbarFrame(nsIPresShell* aPresShell, nsStyleContext* aContex
|
||||
class nsScrollbarFrame : public nsBoxFrame
|
||||
{
|
||||
public:
|
||||
nsScrollbarFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aShell, aContext), mScrollbarMediator(nullptr) {}
|
||||
explicit nsScrollbarFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext), mScrollbarMediator(nullptr) {}
|
||||
|
||||
NS_DECL_QUERYFRAME_TARGET(nsScrollbarFrame)
|
||||
|
||||
|
@ -55,7 +55,7 @@ GetContentOfBox(nsIFrame *aBox)
|
||||
nsIFrame*
|
||||
NS_NewSliderFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsSliderFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsSliderFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsSliderFrame)
|
||||
@ -64,8 +64,8 @@ NS_QUERYFRAME_HEAD(nsSliderFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsSliderFrame)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsBoxFrame)
|
||||
|
||||
nsSliderFrame::nsSliderFrame(nsIPresShell* aPresShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aPresShell, aContext),
|
||||
nsSliderFrame::nsSliderFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext),
|
||||
mCurPos(0),
|
||||
mChange(0),
|
||||
mDragFinished(true),
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
|
||||
friend class nsSliderMediator;
|
||||
|
||||
nsSliderFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsSliderFrame(nsStyleContext* aContext);
|
||||
virtual ~nsSliderFrame();
|
||||
|
||||
#ifdef DEBUG_FRAME_DUMP
|
||||
|
@ -198,13 +198,13 @@ nsSplitterFrameInner::GetState()
|
||||
nsIFrame*
|
||||
NS_NewSplitterFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsSplitterFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsSplitterFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsSplitterFrame)
|
||||
|
||||
nsSplitterFrame::nsSplitterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
: nsBoxFrame(aPresShell, aContext),
|
||||
nsSplitterFrame::nsSplitterFrame(nsStyleContext* aContext)
|
||||
: nsBoxFrame(aContext),
|
||||
mInner(0)
|
||||
{
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ class nsSplitterFrame : public nsBoxFrame
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsSplitterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
explicit nsSplitterFrame(nsStyleContext* aContext);
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
||||
#ifdef DEBUG_FRAME_DUMP
|
||||
|
@ -24,16 +24,16 @@
|
||||
nsIFrame*
|
||||
NS_NewStackFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsStackFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsStackFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsStackFrame)
|
||||
|
||||
nsStackFrame::nsStackFrame(nsIPresShell* aPresShell, nsStyleContext* aContext):
|
||||
nsBoxFrame(aPresShell, aContext)
|
||||
nsStackFrame::nsStackFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout;
|
||||
NS_NewStackLayout(aPresShell, layout);
|
||||
NS_NewStackLayout(PresContext()->PresShell(), layout);
|
||||
SetLayoutManager(layout);
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsStackFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
explicit nsStackFrame(nsStyleContext* aContext);
|
||||
}; // class nsStackFrame
|
||||
|
||||
|
||||
|
@ -61,7 +61,7 @@ bool nsTextBoxFrame::gInsertSeparatorPrefInitialized = false;
|
||||
nsIFrame*
|
||||
NS_NewTextBoxFrame (nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsTextBoxFrame (aPresShell, aContext);
|
||||
return new (aPresShell) nsTextBoxFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsTextBoxFrame)
|
||||
@ -97,8 +97,8 @@ nsTextBoxFrame::AttributeChanged(int32_t aNameSpaceID,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsTextBoxFrame::nsTextBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
||||
nsLeafBoxFrame(aShell, aContext), mAccessKeyInfo(nullptr), mCropType(CropRight),
|
||||
nsTextBoxFrame::nsTextBoxFrame(nsStyleContext* aContext):
|
||||
nsLeafBoxFrame(aContext), mAccessKeyInfo(nullptr), mCropType(CropRight),
|
||||
mNeedsReflowCallback(false)
|
||||
{
|
||||
MarkIntrinsicISizesDirty();
|
||||
|
@ -92,7 +92,7 @@ protected:
|
||||
|
||||
void CalcDrawRect(nsRenderingContext &aRenderingContext);
|
||||
|
||||
nsTextBoxFrame(nsIPresShell* aShell, nsStyleContext* aContext);
|
||||
explicit nsTextBoxFrame(nsStyleContext* aContext);
|
||||
|
||||
nscoord CalculateTitleForWidth(nsPresContext* aPresContext,
|
||||
nsRenderingContext& aRenderingContext,
|
||||
|
@ -28,13 +28,13 @@ using namespace mozilla;
|
||||
nsIFrame*
|
||||
NS_NewTitleBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsTitleBarFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsTitleBarFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsTitleBarFrame)
|
||||
|
||||
nsTitleBarFrame::nsTitleBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
:nsBoxFrame(aPresShell, aContext, false)
|
||||
nsTitleBarFrame::nsTitleBarFrame(nsStyleContext* aContext)
|
||||
:nsBoxFrame(aContext, false)
|
||||
{
|
||||
mTrackingMouseMove = false;
|
||||
UpdateMouseThrough();
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
|
||||
friend nsIFrame* NS_NewTitleBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
|
||||
nsTitleBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
explicit nsTitleBarFrame(nsStyleContext* aContext);
|
||||
|
||||
virtual void BuildDisplayListForChildren(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
|
@ -101,7 +101,7 @@ CancelImageRequest(const nsAString& aKey,
|
||||
nsIFrame*
|
||||
NS_NewTreeBodyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsTreeBodyFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsTreeBodyFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsTreeBodyFrame)
|
||||
@ -112,8 +112,8 @@ NS_QUERYFRAME_HEAD(nsTreeBodyFrame)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsLeafBoxFrame)
|
||||
|
||||
// Constructor
|
||||
nsTreeBodyFrame::nsTreeBodyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
:nsLeafBoxFrame(aPresShell, aContext),
|
||||
nsTreeBodyFrame::nsTreeBodyFrame(nsStyleContext* aContext)
|
||||
:nsLeafBoxFrame(aContext),
|
||||
mSlots(nullptr),
|
||||
mImageCache(),
|
||||
mTopRowIndex(0),
|
||||
|
@ -56,7 +56,7 @@ class nsTreeBodyFrame MOZ_FINAL
|
||||
public:
|
||||
typedef mozilla::layout::ScrollbarActivity ScrollbarActivity;
|
||||
|
||||
nsTreeBodyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
||||
explicit nsTreeBodyFrame(nsStyleContext* aContext);
|
||||
~nsTreeBodyFrame();
|
||||
|
||||
NS_DECL_QUERYFRAME_TARGET(nsTreeBodyFrame)
|
||||
|
@ -25,7 +25,7 @@
|
||||
nsIFrame*
|
||||
NS_NewTreeColFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
return new (aPresShell) nsTreeColFrame(aPresShell, aContext);
|
||||
return new (aPresShell) nsTreeColFrame(aContext);
|
||||
}
|
||||
|
||||
NS_IMPL_FRAMEARENA_HELPERS(nsTreeColFrame)
|
||||
|
@ -16,9 +16,8 @@ class nsTreeColFrame : public nsBoxFrame
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsTreeColFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext):
|
||||
nsBoxFrame(aPresShell, aContext) {}
|
||||
explicit nsTreeColFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext) {}
|
||||
|
||||
virtual void Init(nsIContent* aContent,
|
||||
nsContainerFrame* aParent,
|
||||
|
Loading…
x
Reference in New Issue
Block a user