mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibWeb: Don't include Window.h in Element.h and Document.h
Window.h is a rather heavy file, so let's try not to include it in header files when we can! Element.h now also includes LibWeb/Bindings/Intrinsics.h, but that's just out of my laziness. Most if not all objects call `Bindings::ensure_web_prototype<>()` anyway, so I don't think we would gain much by sticking the header to source files instead.
This commit is contained in:
committed by
Andreas Kling
parent
43177fd2a1
commit
426b7ffa41
Notes:
sideshowbarker
2024-07-17 02:21:14 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/426b7ffa41 Pull-request: https://github.com/SerenityOS/serenity/pull/21383 Reviewed-by: https://github.com/trflynn89
@@ -9,6 +9,7 @@
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/HTML/TraversableNavigable.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/IntersectionObserver/IntersectionObserver.h>
|
||||
|
||||
namespace Web::IntersectionObserver {
|
||||
|
||||
Reference in New Issue
Block a user