LibWeb: Include PropertyID.h in fewer header files

This reduces the size of the recompile when PropertyID.h is modified
from ~1500 to ~125
This commit is contained in:
Callum Law 2025-10-25 02:11:58 +13:00 committed by Sam Atkins
parent 59a1184469
commit 5381146e85
Notes: github-actions[bot] 2025-10-27 14:52:17 +00:00
44 changed files with 67 additions and 19 deletions

View file

@ -58,7 +58,7 @@ ErrorOr<void> generate_header_file(JsonObject& pseudo_elements_data, Core::File&
#include <AK/Optional.h>
#include <AK/StringView.h>
#include <LibWeb/CSS/PropertyID.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Export.h>
namespace Web::CSS {
@ -115,6 +115,7 @@ ErrorOr<void> generate_implementation_file(JsonObject& pseudo_elements_data, Cor
generator.append(R"~~~(
#include <LibWeb/CSS/PseudoElement.h>
#include <LibWeb/CSS/PropertyID.h>
namespace Web::CSS {