Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
PseudoRuleProcessorData Struct Reference

#include <nsIStyleRuleProcessor.h>

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

List of all members.

Public Member Functions

 PseudoRuleProcessorData (nsPresContext *aPresContext, nsIContent *aParentContent, nsIAtom *aPseudoTag, nsICSSPseudoComparator *aComparator, nsRuleWalker *aRuleWalker)
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void Destroy (nsPresContext *aContext)
const nsStringGetLang ()

Public Attributes

nsIAtommPseudoTag
nsICSSPseudoComparatormComparator
nsPresContextmPresContext
nsIContentmContent
nsIContentmParentContent
nsRuleWalkermRuleWalker
nsIContentmScopedRoot
nsIAtommContentTag
nsIAtommContentID
nsIStyledContentmStyledContent
PRPackedBool mIsHTMLContent
PRPackedBool mIsHTMLLink
PRPackedBool mIsSimpleXLink
nsCompatibility mCompatMode
PRPackedBool mHasAttributes
nsLinkState mLinkState
PRInt32 mEventState
PRInt32 mNameSpaceID
RuleProcessorDatamPreviousSiblingData
RuleProcessorDatamParentData

Protected Attributes

nsAutoStringmLanguage

Detailed Description

Definition at line 117 of file nsIStyleRuleProcessor.h.


Constructor & Destructor Documentation

PseudoRuleProcessorData::PseudoRuleProcessorData ( nsPresContext aPresContext,
nsIContent aParentContent,
nsIAtom aPseudoTag,
nsICSSPseudoComparator aComparator,
nsRuleWalker aRuleWalker 
) [inline]

Definition at line 118 of file nsIStyleRuleProcessor.h.

  : RuleProcessorData(aPresContext, aParentContent, aRuleWalker)
  {
    NS_PRECONDITION(aPseudoTag, "null pointer");
    NS_PRECONDITION(aRuleWalker, "null pointer");
    mPseudoTag = aPseudoTag;
    mComparator = aComparator;
  }

Member Function Documentation

void RuleProcessorData::Destroy ( nsPresContext aContext) [inline, inherited]

Definition at line 72 of file nsIStyleRuleProcessor.h.

                                        {
    this->~RuleProcessorData();
    aContext->FreeToShell(sizeof(RuleProcessorData), this);
  };

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2770 of file nsCSSStyleSheet.cpp.

{
  if (!mLanguage) {
    mLanguage = new nsAutoString();
    if (!mLanguage)
      return nsnull;
    for (nsIContent* content = mContent; content;
         content = content->GetParent()) {
      if (content->GetAttrCount() > 0) {
        // xml:lang has precedence over lang on HTML elements (see
        // XHTML1 section C.7).
        nsAutoString value;
        nsresult attrState = content->GetAttr(kNameSpaceID_XML,
                                              nsHTMLAtoms::lang, value);
        if (attrState != NS_CONTENT_ATTR_HAS_VALUE &&
            content->IsContentOfType(nsIContent::eHTML)) {
          attrState = content->GetAttr(kNameSpaceID_None,
                                       nsHTMLAtoms::lang, value);
        }
        if (attrState == NS_CONTENT_ATTR_HAS_VALUE) {
          *mLanguage = value;
          break;
        }
      }
    }
  }
  return mLanguage;
}

Here is the caller graph for this function:

void* RuleProcessorData::operator new ( size_t  sz,
nsPresContext aContext 
) [inline, inherited]

Definition at line 69 of file nsIStyleRuleProcessor.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

Member Data Documentation

Definition at line 132 of file nsIStyleRuleProcessor.h.

Definition at line 91 of file nsIStyleRuleProcessor.h.

Definition at line 80 of file nsIStyleRuleProcessor.h.

Definition at line 86 of file nsIStyleRuleProcessor.h.

Definition at line 85 of file nsIStyleRuleProcessor.h.

Definition at line 94 of file nsIStyleRuleProcessor.h.

Definition at line 92 of file nsIStyleRuleProcessor.h.

Definition at line 88 of file nsIStyleRuleProcessor.h.

Definition at line 89 of file nsIStyleRuleProcessor.h.

Definition at line 90 of file nsIStyleRuleProcessor.h.

nsAutoString* RuleProcessorData::mLanguage [protected, inherited]

Definition at line 103 of file nsIStyleRuleProcessor.h.

Definition at line 93 of file nsIStyleRuleProcessor.h.

Definition at line 95 of file nsIStyleRuleProcessor.h.

Definition at line 81 of file nsIStyleRuleProcessor.h.

Definition at line 100 of file nsIStyleRuleProcessor.h.

Definition at line 79 of file nsIStyleRuleProcessor.h.

Definition at line 99 of file nsIStyleRuleProcessor.h.

Definition at line 131 of file nsIStyleRuleProcessor.h.

Definition at line 82 of file nsIStyleRuleProcessor.h.

Definition at line 83 of file nsIStyleRuleProcessor.h.

Definition at line 87 of file nsIStyleRuleProcessor.h.


The documentation for this struct was generated from the following file: