LibWeb: Remove Document.h include from SVGElement.h

This reduces the recompilation cascade when Document.h is modified,
cutting off the transitive path through ~30 SVG element headers.

Move the inline try_resolve_url_to() template body in
SVGGraphicsElement.h to a non-template helper in the .cpp file to
avoid needing Document.h and ShadowRoot.h in the header.

Add explicit includes to files that relied on the transitive dependency.
This commit is contained in:
Aliaksandr Kalenik
2026-02-08 17:13:36 +01:00
committed by Alexander Kalenik
parent e76cf3e225
commit edf42ec9f9
Notes: github-actions[bot] 2026-02-08 17:52:30 +00:00
12 changed files with 37 additions and 18 deletions

View File

@@ -9,6 +9,8 @@
#include <LibWeb/ARIA/Roles.h>
#include <LibWeb/Bindings/HTMLOptionElementPrototype.h>
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/DocumentFragment.h>
#include <LibWeb/DOM/Node.h>
#include <LibWeb/DOM/Text.h>
#include <LibWeb/HTML/HTMLDataListElement.h>