Bug 899900 - Avoid null checking result of NS_NewBlahFrame. r=dbaron
This commit is contained in:
@@ -14,11 +14,9 @@ NS_NewSelectsAreaFrame(nsIPresShell* aShell, nsStyleContext* aContext, uint32_t
|
||||
{
|
||||
nsSelectsAreaFrame* it = new (aShell) nsSelectsAreaFrame(aContext);
|
||||
|
||||
if (it) {
|
||||
// We need NS_BLOCK_FLOAT_MGR to ensure that the options inside the select
|
||||
// aren't expanded by right floats outside the select.
|
||||
it->SetFlags(aFlags | NS_BLOCK_FLOAT_MGR);
|
||||
}
|
||||
// We need NS_BLOCK_FLOAT_MGR to ensure that the options inside the select
|
||||
// aren't expanded by right floats outside the select.
|
||||
it->SetFlags(aFlags | NS_BLOCK_FLOAT_MGR);
|
||||
|
||||
return it;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user