mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
1956d3d66b
12 changed files with 301 additions and 52 deletions
|
|
@ -700,9 +700,21 @@ Performance::QueueEntry(PerformanceEntry* aEntry)
|
|||
if (mObservers.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
NS_OBSERVER_ARRAY_NOTIFY_XPCOM_OBSERVERS(mObservers,
|
||||
PerformanceObserver,
|
||||
QueueEntry, (aEntry));
|
||||
nsTObserverArray<PerformanceObserver*> interestedObservers;
|
||||
nsTObserverArray<PerformanceObserver*>::ForwardIterator observerIt(
|
||||
mObservers);
|
||||
while (observerIt.HasMore()) {
|
||||
PerformanceObserver* observer = observerIt.GetNext();
|
||||
if (observer->ObservesTypeOfEntry(aEntry)) {
|
||||
interestedObservers.AppendElement(observer);
|
||||
}
|
||||
}
|
||||
|
||||
if (interestedObservers.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
NS_OBSERVER_ARRAY_NOTIFY_XPCOM_OBSERVERS(interestedObservers, PerformanceObserver, QueueEntry, (aEntry));
|
||||
|
||||
if (!mPendingNotificationObserversTask) {
|
||||
RunNotificationObserversTask();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue