mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1231256 (part 7) - Remove unused parameters from two layout functions. r=roc.
This commit is contained in:
parent
c3f91f1d95
commit
fbc04cec5a
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ nsRootBoxFrame::nsRootBoxFrame(nsStyleContext* aContext):
|
||||
mPopupSetFrame = nullptr;
|
||||
|
||||
nsCOMPtr<nsBoxLayout> layout;
|
||||
NS_NewStackLayout(PresContext()->PresShell(), layout);
|
||||
NS_NewStackLayout(layout);
|
||||
SetLayoutManager(layout);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -33,7 +33,7 @@ nsStackFrame::nsStackFrame(nsStyleContext* aContext):
|
||||
nsBoxFrame(aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout;
|
||||
NS_NewStackLayout(PresContext()->PresShell(), layout);
|
||||
NS_NewStackLayout(layout);
|
||||
SetLayoutManager(layout);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user