mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
committed by
Alexander Kalenik
parent
e76cf3e225
commit
edf42ec9f9
Notes:
github-actions[bot]
2026-02-08 17:52:30 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/edf42ec9f90 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7826
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user