mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
Issue #2452 - Fix getter constness
https://bugzilla.mozilla.org/show_bug.cgi?id=1443429 Pt. 2
This commit is contained in:
parent
2a533c943d
commit
458f5eb385
2 changed files with 7 additions and 5 deletions
|
|
@ -1394,6 +1394,8 @@ CycleCollectedJSContext::ProcessStableStateQueue()
|
||||||
MOZ_RELEASE_ASSERT(!mDoingStableStates);
|
MOZ_RELEASE_ASSERT(!mDoingStableStates);
|
||||||
mDoingStableStates = true;
|
mDoingStableStates = true;
|
||||||
|
|
||||||
|
// When run, one event can add another event to the mStableStateEvents, as
|
||||||
|
// such you can't use iterators here.
|
||||||
for (uint32_t i = 0; i < mStableStateEvents.Length(); ++i) {
|
for (uint32_t i = 0; i < mStableStateEvents.Length(); ++i) {
|
||||||
nsCOMPtr<nsIRunnable> event = mStableStateEvents[i].forget();
|
nsCOMPtr<nsIRunnable> event = mStableStateEvents[i].forget();
|
||||||
event->Run();
|
event->Run();
|
||||||
|
|
@ -1481,7 +1483,7 @@ CycleCollectedJSContext::AfterProcessMicrotasks()
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
CycleCollectedJSContext::RecursionDepth()
|
CycleCollectedJSContext::RecursionDepth() const
|
||||||
{
|
{
|
||||||
return mOwningThread->RecursionDepth();
|
return mOwningThread->RecursionDepth();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -357,7 +357,7 @@ public:
|
||||||
virtual void BeforeProcessTask(bool aMightBlock);
|
virtual void BeforeProcessTask(bool aMightBlock);
|
||||||
virtual void AfterProcessTask(uint32_t aRecursionDepth);
|
virtual void AfterProcessTask(uint32_t aRecursionDepth);
|
||||||
|
|
||||||
uint32_t RecursionDepth();
|
uint32_t RecursionDepth() const;
|
||||||
|
|
||||||
// Run in stable state (call through nsContentUtils)
|
// Run in stable state (call through nsContentUtils)
|
||||||
void RunInStableState(already_AddRefed<nsIRunnable>&& aRunnable);
|
void RunInStableState(already_AddRefed<nsIRunnable>&& aRunnable);
|
||||||
|
|
@ -397,12 +397,12 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsInMicroTask()
|
bool IsInMicroTask() const
|
||||||
{
|
{
|
||||||
return mMicroTaskLevel != 0;
|
return mMicroTaskLevel != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t MicroTaskLevel()
|
uint32_t MicroTaskLevel() const
|
||||||
{
|
{
|
||||||
return mMicroTaskLevel;
|
return mMicroTaskLevel;
|
||||||
}
|
}
|
||||||
|
|
@ -416,7 +416,7 @@ public:
|
||||||
|
|
||||||
void PerformDebuggerMicroTaskCheckpoint();
|
void PerformDebuggerMicroTaskCheckpoint();
|
||||||
|
|
||||||
bool IsInStableOrMetaStableState()
|
bool IsInStableOrMetaStableState() const
|
||||||
{
|
{
|
||||||
return mDoingStableStates;
|
return mDoingStableStates;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue