Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSelectsAreaFrame.cpp File Reference
#include "nsSelectsAreaFrame.h"
#include "nsCOMPtr.h"
#include "nsIDOMHTMLOptionElement.h"
#include "nsIContent.h"
#include "nsListControlFrame.h"

Go to the source code of this file.

Functions

nsresult NS_NewSelectsAreaFrame (nsIPresShell *aShell, nsIFrame **aNewFrame, PRUint32 aFlags)

Function Documentation

nsresult NS_NewSelectsAreaFrame ( nsIPresShell aShell,
nsIFrame **  aNewFrame,
PRUint32  aFlags 
)

Definition at line 45 of file nsSelectsAreaFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsSelectsAreaFrame* it = new (aShell) nsSelectsAreaFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  // We need NS_BLOCK_SPACE_MGR to ensure that the options inside the select
  // aren't expanded by right floats outside the select.
  it->SetFlags(aFlags | NS_BLOCK_SPACE_MGR);
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: