LibWeb: Remove Document.h include from Layout/Viewport.h

Move the inline dom_node() method to Viewport.cpp so the header no
longer needs the full Document definition. Add explicit includes to
files that relied on the transitive dependency.
This commit is contained in:
Aliaksandr Kalenik
2026-02-08 17:19:13 +01:00
committed by Alexander Kalenik
parent edf42ec9f9
commit b41ed92505
Notes: github-actions[bot] 2026-02-08 17:52:23 +00:00
11 changed files with 17 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
*/
#include <AK/Debug.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/HTML/Navigable.h>
#include <LibWeb/HTML/NavigableContainer.h>
#include <LibWeb/Layout/NavigableContainerViewport.h>