LibWeb: Don't store WindowOrWorkerGlobalScopeMixin in Performance

It wasn't used anyways, instead preferring to do dynamic_casts in every
method. Let's keep doing that, but move it into a helper function.
This commit is contained in:
Matthew Olsson 2024-04-05 18:04:01 -07:00 committed by Andreas Kling
commit 3c3ead5ff4
Notes: sideshowbarker 2024-07-16 17:12:03 +09:00
5 changed files with 35 additions and 56 deletions

View file

@ -42,12 +42,9 @@ public:
u64 load_event_end() { return 0; }
private:
explicit PerformanceTiming(HTML::WindowOrWorkerGlobalScopeMixin&);
explicit PerformanceTiming(JS::Realm&);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
JS::GCPtr<HTML::WindowOrWorkerGlobalScopeMixin> m_window_or_worker;
};
}