Bug 1231256 (part 7) - Remove unused parameters from two layout functions. r=roc.

This commit is contained in:
Nicholas Nethercote 2015-12-07 15:27:01 -08:00
parent c3f91f1d95
commit fbc04cec5a
8 changed files with 10 additions and 10 deletions

View File

@ -133,7 +133,7 @@ nsBoxFrame::nsBoxFrame(nsStyleContext* aContext,
nsCOMPtr<nsBoxLayout> layout = aLayoutManager;
if (layout == nullptr) {
NS_NewSprocketLayout(PresContext()->PresShell(), layout);
NS_NewSprocketLayout(layout);
}
SetLayoutManager(layout);

View File

@ -48,7 +48,7 @@ nsDeckFrame::nsDeckFrame(nsStyleContext* aContext)
: nsBoxFrame(aContext), mIndex(0)
{
nsCOMPtr<nsBoxLayout> layout;
NS_NewStackLayout(PresContext()->PresShell(), layout);
NS_NewStackLayout(layout);
SetLayoutManager(layout);
}

View File

@ -119,7 +119,7 @@ nsRootBoxFrame::nsRootBoxFrame(nsStyleContext* aContext):
mPopupSetFrame = nullptr;
nsCOMPtr<nsBoxLayout> layout;
NS_NewStackLayout(PresContext()->PresShell(), layout);
NS_NewStackLayout(layout);
SetLayoutManager(layout);
}

View File

@ -32,7 +32,7 @@ nsBoxLayout* nsSprocketLayout::gInstance = nullptr;
nsresult
NS_NewSprocketLayout( nsIPresShell* aPresShell, nsCOMPtr<nsBoxLayout>& aNewLayout)
NS_NewSprocketLayout(nsCOMPtr<nsBoxLayout>& aNewLayout)
{
if (!nsSprocketLayout::gInstance) {
nsSprocketLayout::gInstance = new nsSprocketLayout();

View File

@ -59,13 +59,13 @@ public:
#define SET_COORD(aX, aY, coord, isHorizontal) if (isHorizontal) { aX = (coord); } else { aY = (coord); }
nsresult NS_NewSprocketLayout(nsIPresShell* aPresShell, nsCOMPtr<nsBoxLayout>& aNewLayout);
nsresult NS_NewSprocketLayout(nsCOMPtr<nsBoxLayout>& aNewLayout);
class nsSprocketLayout : public nsBoxLayout {
public:
friend nsresult NS_NewSprocketLayout(nsIPresShell* aPresShell, nsCOMPtr<nsBoxLayout>& aNewLayout);
friend nsresult NS_NewSprocketLayout(nsCOMPtr<nsBoxLayout>& aNewLayout);
static void Shutdown();
NS_IMETHOD Layout(nsIFrame* aBox, nsBoxLayoutState& aState) override;

View File

@ -33,7 +33,7 @@ nsStackFrame::nsStackFrame(nsStyleContext* aContext):
nsBoxFrame(aContext)
{
nsCOMPtr<nsBoxLayout> layout;
NS_NewStackLayout(PresContext()->PresShell(), layout);
NS_NewStackLayout(layout);
SetLayoutManager(layout);
}

View File

@ -29,7 +29,7 @@ nsBoxLayout* nsStackLayout::gInstance = nullptr;
#define SPECIFIED_BOTTOM (1 << NS_SIDE_BOTTOM)
nsresult
NS_NewStackLayout( nsIPresShell* aPresShell, nsCOMPtr<nsBoxLayout>& aNewLayout)
NS_NewStackLayout(nsCOMPtr<nsBoxLayout>& aNewLayout)
{
if (!nsStackLayout::gInstance) {
nsStackLayout::gInstance = new nsStackLayout();

View File

@ -21,13 +21,13 @@
class nsIPresShell;
nsresult NS_NewStackLayout(nsIPresShell* aPresShell, nsCOMPtr<nsBoxLayout>& aNewLayout);
nsresult NS_NewStackLayout(nsCOMPtr<nsBoxLayout>& aNewLayout);
class nsStackLayout : public nsBoxLayout
{
public:
friend nsresult NS_NewStackLayout(nsIPresShell* aPresShell, nsCOMPtr<nsBoxLayout>& aNewLayout);
friend nsresult NS_NewStackLayout(nsCOMPtr<nsBoxLayout>& aNewLayout);
static void Shutdown();
nsStackLayout();