diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-17 23:48:58 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-17 23:48:58 +0000 |
commit | 6be15b96ae4a9f0a73aaea794602201ddf0c4242 (patch) | |
tree | a0bfe1e4c95ea2f6a1c0e551b346a5d178ba7dc0 /dom/animation/AnimationPerformanceWarning.h | |
parent | a0cdf328774e553eec1df9276604362d7a3679cd (diff) | |
download | UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar.gz UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar.lz UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar.xz UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.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/AnimationPerformanceWarning.h')
-rw-r--r-- | dom/animation/AnimationPerformanceWarning.h | 6 |
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; |