Revert part 5 also. It does depends on part 4.

Revert part 5 also. It does depends on part 4.
This commit is contained in:
win7-7 2026-01-28 17:30:07 +02:00 committed by wuggy
commit e79cfc5a77
4 changed files with 24 additions and 85 deletions

View file

@ -83,32 +83,16 @@ private:
bool mNotified;
bool mSleeping;
class Entry final : public nsTimerImplHolder
struct Entry
{
TimeStamp mTimeout;
RefPtr<nsTimerImpl> mTimerImpl;
public:
Entry(const TimeStamp& aMinTimeout, const TimeStamp& aTimeout,
nsTimerImpl* aTimerImpl)
: nsTimerImplHolder(aTimerImpl)
, mTimeout(std::max(aMinTimeout, aTimeout))
{
}
nsTimerImpl*
Value() const
{
return mTimerImpl;
}
already_AddRefed<nsTimerImpl>
Take()
{
if (mTimerImpl) {
mTimerImpl->SetHolder(nullptr);
}
return mTimerImpl.forget();
}
: mTimeout(std::max(aMinTimeout, aTimeout)),
mTimerImpl(aTimerImpl)
{ }
Entry(Entry&& aRight) = default;
Entry& operator=(Entry&& aRight) = default;