mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1446865 - Rename various AddRefTable() functions as RegisterStaticAtoms. r=froydnj
These functions no longer perform any refcounting, so the existing names are misleading. MozReview-Commit-ID: LX55e0bUP8N --HG-- extra : rebase_source : 89a3da577325286c1d31723acfd4153754f49703
This commit is contained in:
parent
db20ce5cdf
commit
2211e2da6f
@ -149,9 +149,9 @@ nsLayoutStatics::Initialize()
|
||||
|
||||
// Register static atoms. Note that nsGkAtoms must be initialized earlier
|
||||
// than here, so it's done in NS_InitAtomTable() instead.
|
||||
nsCSSAnonBoxes::AddRefAtoms();
|
||||
nsCSSPseudoClasses::AddRefAtoms();
|
||||
nsCSSPseudoElements::AddRefAtoms();
|
||||
nsCSSAnonBoxes::RegisterStaticAtoms();
|
||||
nsCSSPseudoClasses::RegisterStaticAtoms();
|
||||
nsCSSPseudoElements::RegisterStaticAtoms();
|
||||
nsCSSKeywords::AddRefTable();
|
||||
nsCSSProps::AddRefTable();
|
||||
nsColorNames::AddRefTable();
|
||||
|
@ -39,7 +39,7 @@ static const nsStaticAtomSetup sCSSAnonBoxAtomSetup[] = {
|
||||
#undef CSS_ANON_BOX
|
||||
};
|
||||
|
||||
void nsCSSAnonBoxes::AddRefAtoms()
|
||||
void nsCSSAnonBoxes::RegisterStaticAtoms()
|
||||
{
|
||||
NS_RegisterStaticAtoms(sCSSAnonBoxAtomSetup);
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ class nsICSSAnonBoxPseudo : public nsAtom {};
|
||||
class nsCSSAnonBoxes {
|
||||
public:
|
||||
|
||||
static void AddRefAtoms();
|
||||
static void RegisterStaticAtoms();
|
||||
|
||||
static bool IsAnonBox(nsAtom *aAtom);
|
||||
#ifdef MOZ_XUL
|
||||
|
@ -68,10 +68,10 @@ nsCSSPseudoClasses::kPseudoClassFlags[] = {
|
||||
/* static */ bool
|
||||
nsCSSPseudoClasses::sPseudoClassEnabled[] = {
|
||||
// If the pseudo class has any "ENABLED_IN" flag set, it is disabled by
|
||||
// default. Note that, if a pseudo class has pref, whatever its default
|
||||
// value is, it'll later be changed in nsCSSPseudoClasses::AddRefAtoms()
|
||||
// If the pseudo class has "ENABLED_IN" flags but doesn't have a pref,
|
||||
// it is an internal pseudo class which is disabled elsewhere.
|
||||
// default. Note that, if a pseudo class has pref, whatever its default value
|
||||
// is, it'll later be changed in nsCSSPseudoClasses::RegisterStaticAtoms() If
|
||||
// the pseudo class has "ENABLED_IN" flags but doesn't have a pref, it is an
|
||||
// internal pseudo class which is disabled elsewhere.
|
||||
#define IS_ENABLED_BY_DEFAULT(flags_) \
|
||||
(!((flags_) & CSS_PSEUDO_CLASS_ENABLED_MASK))
|
||||
#define CSS_PSEUDO_CLASS(name_, value_, flags_, pref_) \
|
||||
@ -81,7 +81,7 @@ nsCSSPseudoClasses::sPseudoClassEnabled[] = {
|
||||
#undef IS_ENABLED_BY_DEFAULT
|
||||
};
|
||||
|
||||
void nsCSSPseudoClasses::AddRefAtoms()
|
||||
void nsCSSPseudoClasses::RegisterStaticAtoms()
|
||||
{
|
||||
NS_RegisterStaticAtoms(sCSSPseudoClassAtomSetup);
|
||||
|
||||
|
@ -59,7 +59,7 @@ class nsCSSPseudoClasses
|
||||
typedef mozilla::CSSEnabledState EnabledState;
|
||||
|
||||
public:
|
||||
static void AddRefAtoms();
|
||||
static void RegisterStaticAtoms();
|
||||
|
||||
static Type GetPseudoType(nsAtom* aAtom, EnabledState aEnabledState);
|
||||
static bool HasStringArg(Type aType);
|
||||
|
@ -45,7 +45,7 @@ nsCSSPseudoElements::kPseudoElementFlags[] = {
|
||||
#undef CSS_PSEUDO_ELEMENT
|
||||
};
|
||||
|
||||
void nsCSSPseudoElements::AddRefAtoms()
|
||||
void nsCSSPseudoElements::RegisterStaticAtoms()
|
||||
{
|
||||
NS_RegisterStaticAtoms(sCSSPseudoElementAtomSetup);
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ class nsCSSPseudoElements
|
||||
typedef mozilla::CSSEnabledState EnabledState;
|
||||
|
||||
public:
|
||||
static void AddRefAtoms();
|
||||
static void RegisterStaticAtoms();
|
||||
|
||||
static bool IsPseudoElement(nsAtom *aAtom);
|
||||
|
||||
|
@ -619,7 +619,7 @@ NS_InitAtomTable()
|
||||
// In order to avoid that, we register nsGkAtoms immediately after creating
|
||||
// the atom table to guarantee that the empty string atom will always be
|
||||
// static.
|
||||
nsGkAtoms::AddRefAtoms();
|
||||
nsGkAtoms::RegisterStaticAtoms();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -21,7 +21,7 @@ static const nsStaticAtomSetup sGkAtomSetup[] = {
|
||||
#undef GK_ATOM
|
||||
};
|
||||
|
||||
void nsGkAtoms::AddRefAtoms()
|
||||
void nsGkAtoms::RegisterStaticAtoms()
|
||||
{
|
||||
NS_RegisterStaticAtoms(sGkAtomSetup);
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
class nsGkAtoms
|
||||
{
|
||||
public:
|
||||
static void AddRefAtoms();
|
||||
static void RegisterStaticAtoms();
|
||||
|
||||
#define GK_ATOM(_name, _value) NS_STATIC_ATOM_DECL(_name)
|
||||
#include "nsGkAtomList.h"
|
||||
|
Loading…
Reference in New Issue
Block a user