mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Revert "Issue #21 - Remove use counters telemetry"
This reverts commit 8ca9db6b65.
This commit is contained in:
parent
bebaa470c6
commit
92a1cc3139
45 changed files with 1128 additions and 36 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include "nsStyleStructFwd.h"
|
||||
#include "nsCSSKeywords.h"
|
||||
#include "mozilla/CSSEnabledState.h"
|
||||
#include "mozilla/UseCounter.h"
|
||||
#include "mozilla/EnumTypeTraits.h"
|
||||
|
||||
// Length of the "--" prefix on custom names (such as custom property names,
|
||||
|
|
@ -639,8 +640,19 @@ public:
|
|||
return gPropertyEnabled[aProperty];
|
||||
}
|
||||
|
||||
// A table for the use counter associated with each CSS property. If a
|
||||
// property does not have a use counter defined in UseCounters.conf, then
|
||||
// its associated entry is |eUseCounter_UNKNOWN|.
|
||||
static const mozilla::UseCounter gPropertyUseCounter[eCSSProperty_COUNT_no_shorthands];
|
||||
|
||||
public:
|
||||
|
||||
static mozilla::UseCounter UseCounterFor(nsCSSPropertyID aProperty) {
|
||||
MOZ_ASSERT(0 <= aProperty && aProperty < eCSSProperty_COUNT_no_shorthands,
|
||||
"out of range");
|
||||
return gPropertyUseCounter[aProperty];
|
||||
}
|
||||
|
||||
static bool IsEnabled(nsCSSPropertyID aProperty, EnabledState aEnabled)
|
||||
{
|
||||
if (IsEnabled(aProperty)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue