mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
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:
parent
7c9dcd757f
commit
e79cfc5a77
4 changed files with 24 additions and 85 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue