Skip to content

Commit e5be7ae

Browse files
committedMar 1, 2024
Bug 1640839 - Add some helpers for enums to calculate the size and use it in EnumeratedArray. r=glandium,jgilbert,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201334
1 parent d2abb05 commit e5be7ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+189
-126
lines changed
 

‎dom/animation/EffectCompositor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class EffectCompositor {
245245
// indicate that the style rule on the element is out of date but without
246246
// posting a restyle to update it.
247247
EnumeratedArray<CascadeLevel, nsTHashMap<PseudoElementHashEntry, bool>,
248-
CascadeLevel(kCascadeLevelCount)>
248+
kCascadeLevelCount>
249249
mElementsToRestyle;
250250

251251
bool mIsInPreTraverse = false;

‎dom/base/FlushType.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ enum class FlushType : uint8_t {
4040

4141
// Flush type strings that will be displayed in the profiler
4242
// clang-format off
43-
const EnumeratedArray<FlushType, const char*, FlushType::Count>
43+
const EnumeratedArray<FlushType, const char*, size_t(FlushType::Count)>
4444
kFlushTypeNames = {
4545
"",
4646
"Event",

0 commit comments

Comments
 (0)
Failed to load comments.