Back to index

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

Go to the source code of this file.

Classes

struct  nsAtomList
struct  nsAtomStringList
struct  nsAttrSelector
struct  nsCSSSelector
struct  nsCSSSelectorList
 A selector list is the unit of selectors that each style rule has. More...
class  nsICSSStyleRule

Defines

#define NS_ATTR_FUNC_SET   0
#define NS_ATTR_FUNC_EQUALS   1
#define NS_ATTR_FUNC_INCLUDES   2
#define NS_ATTR_FUNC_DASHMATCH   3
#define NS_ATTR_FUNC_BEGINSMATCH   4
#define NS_ATTR_FUNC_ENDSMATCH   5
#define NS_ATTR_FUNC_CONTAINSMATCH   6
#define NS_ICSS_STYLE_RULE_IID   {0x00803ccc, 0x66e8, 0x4ec8, {0xa0, 0x37, 0x45, 0xe9, 0x01, 0xbb, 0x53, 0x04}}

Functions

nsresult NS_NewCSSStyleRule (nsICSSStyleRule **aInstancePtrResult, nsCSSSelectorList *aSelector, nsCSSDeclaration *aDeclaration)

Define Documentation

Definition at line 96 of file nsICSSStyleRule.h.

Definition at line 98 of file nsICSSStyleRule.h.

Definition at line 95 of file nsICSSStyleRule.h.

Definition at line 97 of file nsICSSStyleRule.h.

Definition at line 93 of file nsICSSStyleRule.h.

Definition at line 94 of file nsICSSStyleRule.h.

Definition at line 92 of file nsICSSStyleRule.h.

#define NS_ICSS_STYLE_RULE_IID   {0x00803ccc, 0x66e8, 0x4ec8, {0xa0, 0x37, 0x45, 0xe9, 0x01, 0xbb, 0x53, 0x04}}

Definition at line 217 of file nsICSSStyleRule.h.


Function Documentation

nsresult NS_NewCSSStyleRule ( nsICSSStyleRule **  aInstancePtrResult,
nsCSSSelectorList aSelector,
nsCSSDeclaration aDeclaration 
)

Definition at line 1487 of file nsCSSStyleRule.cpp.

{
  NS_PRECONDITION(aDeclaration, "must have a declaration");
  CSSStyleRuleImpl *it = new CSSStyleRuleImpl(aSelector, aDeclaration);
  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: