Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsImageDocument.cpp File Reference
#include "nsRect.h"
#include "nsHTMLDocument.h"
#include "nsIImageDocument.h"
#include "nsIImageLoadingContent.h"
#include "nsGenericHTMLElement.h"
#include "nsIDOMHTMLImageElement.h"
#include "nsIDOMEvent.h"
#include "nsIDOMKeyEvent.h"
#include "nsIDOMMouseEvent.h"
#include "nsIDOMEventListener.h"
#include "nsHTMLAtoms.h"
#include "imgIRequest.h"
#include "imgILoader.h"
#include "imgIContainer.h"
#include "imgIDecoderObserver.h"
#include "nsIPresShell.h"
#include "nsPresContext.h"
#include "nsIScrollableView.h"
#include "nsStyleContext.h"
#include "nsAutoPtr.h"
#include "nsMediaDocument.h"
#include "nsStyleSet.h"
#include "nsIChannel.h"
#include "nsIContentPolicy.h"
#include "nsContentPolicyUtils.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMElement.h"
#include "nsIDOMNSHTMLElement.h"

Go to the source code of this file.

Classes

class  ImageListener
class  nsImageDocument

Defines

#define AUTOMATIC_IMAGE_RESIZING_PREF   "browser.enable_automatic_image_resizing"

Functions

nsresult NS_NewImageDocument (nsIDocument **aResult)

Define Documentation

#define AUTOMATIC_IMAGE_RESIZING_PREF   "browser.enable_automatic_image_resizing"

Definition at line 70 of file nsImageDocument.cpp.


Function Documentation

Definition at line 757 of file nsImageDocument.cpp.

{
  nsImageDocument* doc = new nsImageDocument();
  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: