зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a18df38599
Коммит
e857dc05f7
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче