summaryrefslogtreecommitdiffstats
path: root/dom/animation
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-17 23:48:58 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-21 11:10:23 +0000
commit3272147d97757673898da87bf02ea93438cae1a1 (patch)
tree853540025dd2241a5035b293fefc66b7b592d862 /dom/animation
parentf2866a5420b4645d888fc50b22f7cbdd8a178042 (diff)
downloadUXP-3272147d97757673898da87bf02ea93438cae1a1.tar
UXP-3272147d97757673898da87bf02ea93438cae1a1.tar.gz
UXP-3272147d97757673898da87bf02ea93438cae1a1.tar.lz
UXP-3272147d97757673898da87bf02ea93438cae1a1.tar.xz
UXP-3272147d97757673898da87bf02ea93438cae1a1.zip
Issue #1224 - Remove constant expressions from /dom
This excludes DOMProxy handlers in dom bindings because that's intertwined with codegen and js that needs to be handled together.
Diffstat (limited to 'dom/animation')
-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;