Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsLayoutHistoryState.cpp File Reference
#include "nsILayoutHistoryState.h"
#include "nsWeakReference.h"
#include "nsClassHashtable.h"
#include "nsPresState.h"

Go to the source code of this file.

Classes

class  nsLayoutHistoryState

Functions

nsresult NS_NewLayoutHistoryState (nsILayoutHistoryState **aState)
 NS_IMPL_ISUPPORTS2 (nsLayoutHistoryState, nsILayoutHistoryState, nsISupportsWeakReference) nsresult nsLayoutHistoryState

Function Documentation

Definition at line 85 of file nsLayoutHistoryState.cpp.

{
  return mStates.Init() ? NS_OK : NS_ERROR_FAILURE;
}

Definition at line 66 of file nsLayoutHistoryState.cpp.

{
  nsLayoutHistoryState *state;

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

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

  return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function: