mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 899896 - Avoid null checking of some box layout factory functions. r=dbaron
This commit is contained in:
parent
ad5ce3ee02
commit
3280537429
@ -1474,10 +1474,6 @@ nsIFrame*
|
||||
NS_NewListBoxBodyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout = NS_NewListBoxLayout();
|
||||
if (!layout) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return new (aPresShell) nsListBoxBodyFrame(aPresShell, aContext, layout);
|
||||
}
|
||||
|
||||
|
@ -23,10 +23,6 @@ NS_NewGridRowGroupFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout = NS_NewGridRowGroupLayout();
|
||||
if (!layout) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return new (aPresShell) nsGridRowGroupFrame(aPresShell, aContext, layout);
|
||||
}
|
||||
|
||||
|
@ -23,10 +23,6 @@ NS_NewGridRowLeafFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext)
|
||||
{
|
||||
nsCOMPtr<nsBoxLayout> layout = NS_NewGridRowLeafLayout();
|
||||
if (!layout) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return new (aPresShell) nsGridRowLeafFrame(aPresShell, aContext, false,
|
||||
layout);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user