Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsStyleSet.cpp File Reference
#include "nsStyleSet.h"
#include "nsNetUtil.h"
#include "nsICSSStyleSheet.h"
#include "nsIDocument.h"
#include "nsRuleWalker.h"
#include "nsStyleContext.h"
#include "nsICSSStyleRule.h"
#include "nsCSSAnonBoxes.h"
#include "nsCSSPseudoElements.h"
#include "nsCSSRuleProcessor.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsStyleStructList.h"

Go to the source code of this file.

Classes

struct  StatefulData
struct  AttributeData

Defines

#define CHECK_APPLICABLE
#define SSARG_PRESCONTEXT   aPresContext
#define CREATE_DATA(name, type, args)
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)   CREATE_DATA(name, Inherited, ctor_args)
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args)   CREATE_DATA(name, Reset, ctor_args)

Functions

static PRBool EnumRulesMatching (nsIStyleRuleProcessor *aProcessor, void *aData)
static PRBool EnumPseudoRulesMatching (nsIStyleRuleProcessor *aProcessor, void *aData)
static PRBool SheetHasStatefulStyle (nsIStyleRuleProcessor *aProcessor, void *aData)
static PRBool SheetHasAttributeStyle (nsIStyleRuleProcessor *aProcessor, void *aData)

Variables

static const PRInt32 kGCInterval = 1000

Define Documentation

Definition at line 142 of file nsStyleSet.cpp.

#define CREATE_DATA (   name,
  type,
  args 
)
Value:
if (!(mDefaultStyleData.m##type##Data->m##name##Data = \
          new (aPresContext) nsStyle##name args)) \
    return PR_FALSE;
#define SSARG_PRESCONTEXT   aPresContext
#define STYLE_STRUCT_INHERITED (   name,
  checkdata_cb,
  ctor_args 
)    CREATE_DATA(name, Inherited, ctor_args)
#define STYLE_STRUCT_RESET (   name,
  checkdata_cb,
  ctor_args 
)    CREATE_DATA(name, Reset, ctor_args)

Function Documentation

static PRBool EnumPseudoRulesMatching ( nsIStyleRuleProcessor aProcessor,
void aData 
) [static]

Definition at line 618 of file nsStyleSet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool EnumRulesMatching ( nsIStyleRuleProcessor aProcessor,
void aData 
) [static]

Definition at line 333 of file nsStyleSet.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool SheetHasAttributeStyle ( nsIStyleRuleProcessor aProcessor,
void aData 
) [static]

Definition at line 864 of file nsStyleSet.cpp.

{
  AttributeData* data = (AttributeData*)aData;
  nsReStyleHint hint;
  aProcessor->HasAttributeDependentStyle(data, &hint);
  data->mHint = nsReStyleHint(data->mHint | hint);
  return PR_TRUE; // continue
}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool SheetHasStatefulStyle ( nsIStyleRuleProcessor aProcessor,
void aData 
) [static]

Definition at line 820 of file nsStyleSet.cpp.

{
  StatefulData* data = (StatefulData*)aData;
  nsReStyleHint hint;
  aProcessor->HasStateDependentStyle(data, &hint);
  data->mHint = nsReStyleHint(data->mHint | hint);
  return PR_TRUE; // continue
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const PRInt32 kGCInterval = 1000 [static]

Definition at line 738 of file nsStyleSet.cpp.