LibWeb: Reduce recompilation impact of DOM/Document.h

Remove 11 heavy includes from Document.h that were only needed for
pointer/reference types (already forward-declared in Forward.h), and
extract the nested ViewportClient interface to a standalone header.

This reduces Document.h's recompilation cascade from ~1228 files to
~717 files (42% reduction). Headers like BrowsingContext.h that were
previously transitively included see even larger improvements (from
~1228 down to ~73 dependents).
This commit is contained in:
Aliaksandr Kalenik 2026-02-11 07:33:58 +01:00 committed by Alexander Kalenik
parent 074a12f6e5
commit 901cc28272
Notes: github-actions[bot] 2026-02-11 19:03:56 +00:00
86 changed files with 141 additions and 27 deletions

View file

@ -19,6 +19,7 @@
#include <LibURL/Parser.h>
#include <LibWeb/Bindings/HTMLInputElementPrototype.h>
#include <LibWeb/Bindings/PrincipalHostDefined.h>
#include <LibWeb/CSS/CSSStyleProperties.h>
#include <LibWeb/CSS/ComputedProperties.h>
#include <LibWeb/CSS/Parser/Parser.h>
#include <LibWeb/CSS/StyleValues/DisplayStyleValue.h>