summaryrefslogtreecommitdiffstats
path: root/dom/animation/AnimationPerformanceWarning.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-23 23:45:46 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-23 23:45:46 +0000
commit9f5c27ba479c54d4ebb1bd59b61fbf793f6df93f (patch)
tree831e0ae1649d6135429def03688bc93ff7c86b03 /dom/animation/AnimationPerformanceWarning.h
parent42f895f27f239e973c9c06241f7a58da7381353c (diff)
parentf624bd1375655dea196cdcb70a9860bc5817df49 (diff)
downloadUXP-f583969f6ffe8f2dbd525dd3dc55d25347d7c492.tar
UXP-f583969f6ffe8f2dbd525dd3dc55d25347d7c492.tar.gz
UXP-f583969f6ffe8f2dbd525dd3dc55d25347d7c492.tar.lz
UXP-f583969f6ffe8f2dbd525dd3dc55d25347d7c492.tar.xz
UXP-f583969f6ffe8f2dbd525dd3dc55d25347d7c492.zip
Merge branch 'redwood' into releaseRELBASE_20200929RC_20200924
Diffstat (limited to 'dom/animation/AnimationPerformanceWarning.h')
-rw-r--r--dom/animation/AnimationPerformanceWarning.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/dom/animation/AnimationPerformanceWarning.h b/dom/animation/AnimationPerformanceWarning.h
index a1ac35cba..582c48cc3 100644
--- a/dom/animation/AnimationPerformanceWarning.h
+++ b/dom/animation/AnimationPerformanceWarning.h
@@ -38,8 +38,6 @@ struct AnimationPerformanceWarning
std::initializer_list<int32_t> aParams)
: mType(aType)
{
- // FIXME: Once std::initializer_list::size() become a constexpr function,
- // we should use static_assert here.
MOZ_ASSERT(aParams.size() <= kMaxParamsForLocalization,
"The length of parameters should be less than "
"kMaxParamsForLocalization");
@@ -49,11 +47,11 @@ struct AnimationPerformanceWarning
// Maximum number of parameters passed to
// nsContentUtils::FormatLocalizedString to localize warning messages.
//
- // NOTE: This constexpr can't be forward declared, so if you want to use
+ // NOTE: This can't be forward declared, so if you want to use
// this variable, please include this header file directly.
// This value is the same as the limit of nsStringBundle::FormatString.
// See the implementation of nsStringBundle::FormatString.
- static constexpr uint8_t kMaxParamsForLocalization = 10;
+ static const uint8_t kMaxParamsForLocalization = 10;
// Indicates why this property could not be animated on the compositor.
Type mType;