Skip to content

Commit 41dfa49

Browse files
committedMar 2, 2024
Bug 1640839 - Move size template parameter for EnumeratedArray to the end. r=glandium,jgilbert,media-playback-reviewers,credential-management-reviewers,padenot,dimi
This will allow us to provide a default value for the size when some enum helper traits are defined. Differential Revision: https://phabricator.services.mozilla.com/D201333
1 parent e188a0a commit 41dfa49

Some content is hidden

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

52 files changed

+122
-143
lines changed
 

‎dom/animation/EffectCompositor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ class EffectCompositor {
244244
// animations that can be throttled, we will add an entry to the hashtable to
245245
// indicate that the style rule on the element is out of date but without
246246
// posting a restyle to update it.
247-
EnumeratedArray<CascadeLevel, CascadeLevel(kCascadeLevelCount),
248-
nsTHashMap<PseudoElementHashEntry, bool>>
247+
EnumeratedArray<CascadeLevel, nsTHashMap<PseudoElementHashEntry, bool>,
248+
CascadeLevel(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, FlushType::Count, const char*>
43+
const EnumeratedArray<FlushType, const char*, FlushType::Count>
4444
kFlushTypeNames = {
4545
"",
4646
"Event",

0 commit comments

Comments
 (0)
Failed to load comments.