Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsCSSRule Class Reference

#include <nsCSSRule.h>

Inheritance diagram for nsCSSRule:
Inheritance graph
[legend]
Collaboration diagram for nsCSSRule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsCSSRule (void)
 nsCSSRule (const nsCSSRule &aCopy)
virtual ~nsCSSRule (void)
 NS_IMETHOD_ (nsrefcnt) AddRef()
 NS_IMETHOD_ (nsrefcnt) Release()
NS_IMETHOD GetStyleSheet (nsIStyleSheet *&aSheet) const
NS_IMETHOD SetStyleSheet (nsICSSStyleSheet *aSheet)
NS_IMETHOD SetParentRule (nsICSSGroupRule *aRule)
NS_IMETHOD MapRuleInfoInto (nsRuleData *aRuleData)

Protected Attributes

nsAutoRefCnt mRefCnt
nsICSSStyleSheetmSheet
nsICSSGroupRulemParentRule

Detailed Description

Definition at line 48 of file nsCSSRule.h.


Constructor & Destructor Documentation

Definition at line 41 of file nsCSSRule.cpp.

Definition at line 48 of file nsCSSRule.cpp.

  : mRefCnt(0),
    mSheet(aCopy.mSheet),
    mParentRule(aCopy.mParentRule)
{
}
nsCSSRule::~nsCSSRule ( void  ) [virtual]

Definition at line 56 of file nsCSSRule.cpp.

{
}

Member Function Documentation

Reimplemented in CSSStyleRuleImpl.

Definition at line 64 of file nsCSSRule.cpp.

{
  NS_IF_ADDREF(mSheet);
  aSheet = mSheet;
  return NS_OK;
}

Reimplemented in CSSStyleRuleImpl.

Definition at line 92 of file nsCSSRule.cpp.

{
  // The nsIStyleRule contract is not appropriate for all CSS rules.
  NS_NOTREACHED("nsCSSRule::MapRuleInfoInto");
  return NS_OK;
}

Reimplemented in CSSStyleRuleImpl.

Definition at line 82 of file nsCSSRule.cpp.

{
  // We don't reference count this up reference. The group rule
  // will tell us when it's going away or when we're detached from
  // it.
  mParentRule = aRule;
  return NS_OK;
}

Reimplemented in CSSStyleRuleImpl, and nsCSSMediaRule.

Definition at line 72 of file nsCSSRule.cpp.

{
  // We don't reference count this up reference. The style sheet
  // will tell us when it's going away or when we're detached from
  // it.
  mSheet = aSheet;
  return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 73 of file nsCSSRule.h.

Definition at line 58 of file nsCSSRule.h.

Definition at line 72 of file nsCSSRule.h.


The documentation for this class was generated from the following files: