tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 4d12bd20f5d697bd7aecc8d00b8bfb50ee55abd4
parent 9d673f41f38060a3a6c85f426ef92f57b8b86bb6
Author: serge-sans-paille <sguelton@mozilla.com>
Date:   Tue, 14 Oct 2025 07:10:34 +0000

Bug 1993878 - Cleanup mfbt/RangedArray.h includes r=emilio

And a minor nits in the process.

Differential Revision: https://phabricator.services.mozilla.com/D268355

Diffstat:
Mdom/animation/KeyframeUtils.cpp | 1-
Mmfbt/RangedArray.h | 4++--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dom/animation/KeyframeUtils.cpp b/dom/animation/KeyframeUtils.cpp @@ -15,7 +15,6 @@ #include "mozilla/AnimatedPropertyID.h" #include "mozilla/ComputedStyle.h" #include "mozilla/ErrorResult.h" -#include "mozilla/RangedArray.h" #include "mozilla/ServoBindingTypes.h" #include "mozilla/ServoBindings.h" #include "mozilla/ServoCSSParser.h" diff --git a/mfbt/RangedArray.h b/mfbt/RangedArray.h @@ -30,12 +30,12 @@ class RangedArray { static size_t minIndex() { return MinIndex; } T& operator[](size_t aIndex) { - MOZ_ASSERT(aIndex == MinIndex || aIndex > MinIndex); + MOZ_ASSERT(aIndex >= MinIndex); return mArr[aIndex - MinIndex]; } const T& operator[](size_t aIndex) const { - MOZ_ASSERT(aIndex == MinIndex || aIndex > MinIndex); + MOZ_ASSERT(aIndex >= MinIndex); return mArr[aIndex - MinIndex]; }