Back to index

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

Go to the source code of this file.

Classes

class  nsIHTMLCSSStyleSheet

Defines

#define NS_IHTML_CSS_STYLE_SHEET_IID   {0xb5cc4ac0, 0xeab6, 0x11d1, {0x80, 0x31, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a}}

Functions

nsresult NS_NewHTMLCSSStyleSheet (nsIHTMLCSSStyleSheet **aInstancePtrResult, nsIURI *aURL, nsIDocument *aDocument)
nsresult NS_NewHTMLCSSStyleSheet (nsIHTMLCSSStyleSheet **aInstancePtrResult)

Define Documentation

#define NS_IHTML_CSS_STYLE_SHEET_IID   {0xb5cc4ac0, 0xeab6, 0x11d1, {0x80, 0x31, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a}}

Definition at line 43 of file nsIHTMLCSSStyleSheet.h.


Function Documentation

nsresult NS_NewHTMLCSSStyleSheet ( nsIHTMLCSSStyleSheet **  aInstancePtrResult,
nsIURI aURL,
nsIDocument aDocument 
)

Definition at line 620 of file nsHTMLCSSStyleSheet.cpp.

{
  nsresult rv;
  nsIHTMLCSSStyleSheet* sheet;
  if (NS_FAILED(rv = NS_NewHTMLCSSStyleSheet(&sheet)))
    return rv;

  if (NS_FAILED(rv = sheet->Init(aURL, aDocument))) {
    NS_RELEASE(sheet);
    return rv;
  }

  *aInstancePtrResult = sheet;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 638 of file nsHTMLCSSStyleSheet.cpp.

{
  if (aInstancePtrResult == nsnull) {
    return NS_ERROR_NULL_POINTER;
  }

  HTMLCSSStyleSheetImpl*  it = new HTMLCSSStyleSheetImpl();

  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(it);
  *aInstancePtrResult = it;
  return NS_OK;
}

Here is the call graph for this function: