Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsPluginDocument.cpp File Reference
#include "nsMediaDocument.h"
#include "nsIPluginDocument.h"
#include "nsHTMLAtoms.h"
#include "nsIPresShell.h"
#include "nsIObjectFrame.h"
#include "nsIPluginInstance.h"
#include "nsIDocShellTreeItem.h"
#include "nsNodeInfoManager.h"

Go to the source code of this file.

Classes

class  nsPluginDocument

Functions

nsresult NS_NewPluginDocument (nsIDocument **aResult)

Function Documentation

Definition at line 268 of file nsPluginDocument.cpp.

{
  nsPluginDocument* doc = new nsPluginDocument();
  if (!doc) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(doc);
  nsresult rv = doc->Init();

  if (NS_FAILED(rv)) {
    NS_RELEASE(doc);
  }

  *aResult = doc;

  return rv;
}

Here is the call graph for this function: