EventLoop.cpp 463 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibJS/Runtime/VM.h>
  7. #include <LibWeb/Bindings/MainThreadVM.h>
  8. #include <LibWeb/HTML/EventLoop/EventLoop.h>
  9. namespace Web::HTML {
  10. EventLoop::EventLoop()
  11. {
  12. }
  13. EventLoop::~EventLoop()
  14. {
  15. }
  16. EventLoop& main_thread_event_loop()
  17. {
  18. return static_cast<Bindings::WebEngineCustomData*>(Bindings::main_thread_vm().custom_data())->event_loop;
  19. }
  20. }