mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibWeb: Make CSS::Screen GC-allocated
This commit is contained in:
parent
d5e831988e
commit
8c90e08e0b
6 changed files with 36 additions and 21 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <AK/URL.h>
|
||||
#include <LibJS/Heap/Heap.h>
|
||||
#include <LibWeb/Bindings/CrossOriginAbstractOperations.h>
|
||||
#include <LibWeb/CSS/Screen.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/AnimationFrameCallbackDriver.h>
|
||||
|
@ -79,7 +78,7 @@ public:
|
|||
|
||||
Crypto::Crypto& crypto() { return *m_crypto; }
|
||||
|
||||
CSS::Screen& screen() { return *m_screen; }
|
||||
CSS::Screen& screen();
|
||||
|
||||
DOM::Event* current_event() { return m_current_event.ptr(); }
|
||||
DOM::Event const* current_event() const { return m_current_event.ptr(); }
|
||||
|
@ -149,7 +148,7 @@ private:
|
|||
|
||||
JS::GCPtr<HighResolutionTime::Performance> m_performance;
|
||||
NonnullRefPtr<Crypto::Crypto> m_crypto;
|
||||
NonnullOwnPtr<CSS::Screen> m_screen;
|
||||
JS::GCPtr<CSS::Screen> m_screen;
|
||||
|
||||
AnimationFrameCallbackDriver m_animation_frame_callback_driver;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue