From 4910266cb712f5752980aee65f99b3b797efdec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 12 Jul 2022 22:22:18 +0000 Subject: [PATCH] Bug 1777982 - Some minor cleanups in nsCSSProps.h. r=jwatt Drive-by, but might as well remove this useless namespacing. Depends on D151594 Differential Revision: https://phabricator.services.mozilla.com/D151595 --- layout/style/nsCSSProps.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layout/style/nsCSSProps.h b/layout/style/nsCSSProps.h index 04123c714e48..4db46b240fe6 100644 --- a/layout/style/nsCSSProps.h +++ b/layout/style/nsCSSProps.h @@ -105,7 +105,7 @@ class nsCSSProps { static bool PropHasFlags(nsCSSPropertyID aProperty, Flags aFlags) { MOZ_ASSERT(0 <= aProperty && aProperty < eCSSProperty_COUNT_with_aliases, "out of range"); - return (nsCSSProps::kFlagsTable[aProperty] & aFlags) == aFlags; + return (kFlagsTable[aProperty] & aFlags) == aFlags; } static nsCSSPropertyID Physicalize(nsCSSPropertyID aProperty, @@ -141,8 +141,7 @@ class nsCSSProps { MOZ_ASSERT(eCSSProperty_COUNT_no_shorthands <= aProperty && aProperty < eCSSProperty_COUNT, "out of range"); - return nsCSSProps::kSubpropertyTable[aProperty - - eCSSProperty_COUNT_no_shorthands]; + return kSubpropertyTable[aProperty - eCSSProperty_COUNT_no_shorthands]; } private: