зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1528071 - Move `GetAtomBase`s into classes to avoid unified name conflict. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D22013 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3fd68ef47d
Коммит
2b024928d3
|
@ -23,7 +23,8 @@ bool nsCSSAnonBoxes::IsTreePseudoElement(nsAtom* aPseudo) {
|
|||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
static nsStaticAtom* GetAtomBase() {
|
||||
/* static */
|
||||
nsStaticAtom* nsCSSAnonBoxes::GetAtomBase() {
|
||||
return const_cast<nsStaticAtom*>(
|
||||
nsGkAtoms::GetAtomByIndex(kAtomIndex_AnonBoxes));
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@ class nsCSSAnonBoxes {
|
|||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static nsStaticAtom* GetAtomBase();
|
||||
static void AssertAtoms();
|
||||
#endif
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@ using namespace mozilla;
|
|||
#undef CSS_PSEUDO_ELEMENT
|
||||
};
|
||||
|
||||
static nsStaticAtom* GetAtomBase() {
|
||||
/* static */
|
||||
nsStaticAtom* nsCSSPseudoElements::GetAtomBase() {
|
||||
return const_cast<nsStaticAtom*>(
|
||||
nsGkAtoms::GetAtomByIndex(kAtomIndex_PseudoElements));
|
||||
}
|
||||
|
|
|
@ -150,6 +150,8 @@ class nsCSSPseudoElements {
|
|||
return (kPseudoElementFlags[size_t(aType)] & aFlags) != 0;
|
||||
}
|
||||
|
||||
static nsStaticAtom* GetAtomBase();
|
||||
|
||||
static const uint32_t kPseudoElementFlags[size_t(Type::CSSPseudoElementsEnd)];
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче