Bug 1159003 - Remove Performance::GetAsISupports(), r=bz

This commit is contained in:
roytam1 2023-04-13 16:43:07 +08:00
commit 16a1923c3b
4 changed files with 1 additions and 13 deletions

View file

@ -542,7 +542,7 @@ Performance::Measure(JSContext* aCx,
}
RefPtr<PerformanceMeasure> performanceMeasure = new PerformanceMeasure(
GetAsISupports(), aName, startTime, endTime, detail);
GetParentObject(), aName, startTime, endTime, detail);
InsertUserEntry(performanceMeasure);
return performanceMeasure.forget();

View file

@ -138,8 +138,6 @@ protected:
void ClearUserEntries(const Optional<nsAString>& aEntryName,
const nsAString& aEntryType);
virtual nsISupports* GetAsISupports() = 0;
virtual void DispatchBufferFullEvent() = 0;
virtual TimeStamp CreationTimeStamp() const = 0;

View file

@ -65,11 +65,6 @@ public:
protected:
~PerformanceMainThread();
nsISupports* GetAsISupports() override
{
return this;
}
void InsertUserEntry(PerformanceEntry* aEntry) override;
DOMHighResTimeStamp

View file

@ -65,11 +65,6 @@ public:
protected:
~PerformanceWorker();
nsISupports* GetAsISupports() override
{
return nullptr;
}
void InsertUserEntry(PerformanceEntry* aEntry) override;
void DispatchBufferFullEvent() override