Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsPresState.cpp File Reference
#include "nsCOMPtr.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsIComponentManager.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsLayoutErrors.h"
#include "nsPresState.h"
#include "nsString.h"

Go to the source code of this file.

Functions

nsresult NS_NewPresState (nsPresState **aState)

Function Documentation

Definition at line 119 of file nsPresState.cpp.

{
  nsPresState *state;

  *aState = nsnull;
  state = new nsPresState();
  if (!state)
    return NS_ERROR_OUT_OF_MEMORY;

  nsresult rv = state->Init();
  if (NS_SUCCEEDED(rv))
    *aState = state;
  else
    delete state;

  return rv;
}

Here is the caller graph for this function: