Back to index

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

Go to the source code of this file.

Classes

class  nsICSSRule

Defines

#define NS_ICSS_RULE_IID   {0xb9791e20, 0x1a04, 0x11d3, {0x80, 0x5a, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a}}

Functions

nsresult NS_NewCSSCharsetRule (nsICSSRule **aInstancePtrResult, const nsAString &aEncoding)

Define Documentation

#define NS_ICSS_RULE_IID   {0xb9791e20, 0x1a04, 0x11d3, {0x80, 0x5a, 0x00, 0x60, 0x08, 0x15, 0x9b, 0x5a}}

Definition at line 48 of file nsICSSRule.h.


Function Documentation

nsresult NS_NewCSSCharsetRule ( nsICSSRule **  aInstancePtrResult,
const nsAString &  aEncoding 
)

Definition at line 275 of file nsCSSRules.cpp.

{
  if (! aInstancePtrResult) {
    return NS_ERROR_NULL_POINTER;
  }

  CSSCharsetRuleImpl* it = new CSSCharsetRuleImpl(aEncoding);

  if (! it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  return CallQueryInterface(it, aInstancePtrResult);
}

Here is the call graph for this function:

Here is the caller graph for this function: