mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:47:36 +00:00
LibWeb: Make CSS::Screen forward its ref count to DOM::Window
This commit is contained in:
parent
7fc770cfac
commit
c268d0fa13
4 changed files with 12 additions and 10 deletions
|
@ -111,7 +111,7 @@ Window::Window(Document& document)
|
|||
, m_associated_document(document)
|
||||
, m_performance(make<HighResolutionTime::Performance>(*this))
|
||||
, m_crypto(Crypto::Crypto::create())
|
||||
, m_screen(CSS::Screen::create(*this))
|
||||
, m_screen(CSS::Screen::create({}, *this))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ private:
|
|||
|
||||
NonnullOwnPtr<HighResolutionTime::Performance> m_performance;
|
||||
NonnullRefPtr<Crypto::Crypto> m_crypto;
|
||||
NonnullRefPtr<CSS::Screen> m_screen;
|
||||
NonnullOwnPtr<CSS::Screen> m_screen;
|
||||
RefPtr<Event> m_current_event;
|
||||
|
||||
HashMap<i32, NonnullRefPtr<RequestAnimationFrameCallback>> m_request_animation_frame_callbacks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue