Bug 1053986 - Rename nsIFrame::SetLayoutManager to SetXULLayoutManager. r=dholbert

Written purely with sed, over .h and .cpp files in layout/.

MozReview-Commit-ID: FuOaNWfROKV
This commit is contained in:
L. David Baron 2016-04-20 21:28:33 -07:00
Родитель a18df38599
Коммит e857dc05f7
7 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1008,7 +1008,7 @@ nsXULScrollFrame::nsXULScrollFrame(nsStyleContext* aContext,
: nsBoxFrame(aContext, aIsRoot),
mHelper(ALLOW_THIS_IN_INITIALIZER_LIST(this), aIsRoot)
{
SetLayoutManager(nullptr);
SetXULLayoutManager(nullptr);
mHelper.mClipAllDescendants = aClipAllDescendants;
}

Просмотреть файл

@ -2916,7 +2916,7 @@ public:
virtual nsresult GetXULBorder(nsMargin& aBorder)=0;
virtual nsresult GetXULPadding(nsMargin& aBorderAndPadding)=0;
virtual nsresult GetXULMargin(nsMargin& aMargin)=0;
virtual void SetLayoutManager(nsBoxLayout* aLayout) { }
virtual void SetXULLayoutManager(nsBoxLayout* aLayout) { }
virtual nsBoxLayout* GetLayoutManager() { return nullptr; }
nsresult GetClientRect(nsRect& aContentRect);

Просмотреть файл

@ -136,7 +136,7 @@ nsBoxFrame::nsBoxFrame(nsStyleContext* aContext,
NS_NewSprocketLayout(layout);
}
SetLayoutManager(layout);
SetXULLayoutManager(layout);
}
nsBoxFrame::~nsBoxFrame()
@ -958,7 +958,7 @@ nsBoxFrame::DestroyFrom(nsIFrame* aDestructRoot)
RegUnregAccessKey(false);
// clean up the container box's layout manager and child boxes
SetLayoutManager(nullptr);
SetXULLayoutManager(nullptr);
nsContainerFrame::DestroyFrom(aDestructRoot);
}

Просмотреть файл

@ -56,7 +56,7 @@ public:
// gets the rect inside our border and debug border. If you wish to paint inside a box
// call this method to get the rect so you don't draw on the debug border or outer border.
virtual void SetLayoutManager(nsBoxLayout* aLayout) override { mLayoutManager = aLayout; }
virtual void SetXULLayoutManager(nsBoxLayout* aLayout) override { mLayoutManager = aLayout; }
virtual nsBoxLayout* GetLayoutManager() override { return mLayoutManager; }
virtual nsresult RelayoutChildAtOrdinal(nsIFrame* aChild) override;

Просмотреть файл

@ -49,7 +49,7 @@ nsDeckFrame::nsDeckFrame(nsStyleContext* aContext)
{
nsCOMPtr<nsBoxLayout> layout;
NS_NewStackLayout(layout);
SetLayoutManager(layout);
SetXULLayoutManager(layout);
}
nsIAtom*

Просмотреть файл

@ -120,7 +120,7 @@ nsRootBoxFrame::nsRootBoxFrame(nsStyleContext* aContext):
nsCOMPtr<nsBoxLayout> layout;
NS_NewStackLayout(layout);
SetLayoutManager(layout);
SetXULLayoutManager(layout);
}
void

Просмотреть файл

@ -34,7 +34,7 @@ nsStackFrame::nsStackFrame(nsStyleContext* aContext):
{
nsCOMPtr<nsBoxLayout> layout;
NS_NewStackLayout(layout);
SetLayoutManager(layout);
SetXULLayoutManager(layout);
}
// REVIEW: The old code put everything in the background layer. To be more