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:
David Major 2019-03-06 04:41:13 +00:00
Родитель 3fd68ef47d
Коммит 2b024928d3
4 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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)];
};