Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsScrollbarFrame.h File Reference
#include "nsBoxFrame.h"
#include "nsIScrollbarFrame.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsScrollbarFrame

Functions

nsresult NS_NewScrollbarFrame (nsIPresShell *aPresShell, nsIFrame **aResult)

Function Documentation

nsresult NS_NewScrollbarFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 59 of file nsScrollbarFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsScrollbarFrame* it = new (aPresShell) nsScrollbarFrame (aPresShell);
  if (nsnull == it)
    return NS_ERROR_OUT_OF_MEMORY;

  *aNewFrame = it;
  return NS_OK;
  
} // NS_NewScrollbarFrame