Bug 899896 - Avoid null checking of some box layout factory functions. r=dbaron

This commit is contained in:
Cameron McCormack 2013-08-03 14:11:06 +10:00
Родитель ad5ce3ee02
Коммит 3280537429
3 изменённых файлов: 0 добавлений и 12 удалений

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

@ -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);
}