mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
59a1184469
commit
5381146e85
Notes:
github-actions[bot]
2025-10-27 14:52:17 +00:00
Author: https://github.com/Calme1709
Commit: 5381146e85
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6576
Reviewed-by: https://github.com/AtkinsSJ ✅
44 changed files with 67 additions and 19 deletions
|
|
@ -164,6 +164,7 @@ ErrorOr<void> generate_header_file(JsonObject& properties, JsonObject& logical_p
|
|||
#include <AK/Traits.h>
|
||||
#include <AK/Variant.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/CSS/AcceptedTypeRange.h>
|
||||
#include <LibWeb/CSS/Enums.h>
|
||||
#include <LibWeb/CSS/ValueType.h>
|
||||
#include <LibWeb/Export.h>
|
||||
|
|
@ -259,11 +260,6 @@ bool property_is_single_valued(PropertyID);
|
|||
bool property_is_list_valued(PropertyID);
|
||||
|
||||
bool property_accepts_type(PropertyID, ValueType);
|
||||
struct AcceptedTypeRange {
|
||||
float min;
|
||||
float max;
|
||||
};
|
||||
using AcceptedTypeRangeMap = HashMap<ValueType, AcceptedTypeRange>;
|
||||
AcceptedTypeRangeMap property_accepted_type_ranges(PropertyID);
|
||||
bool property_accepts_keyword(PropertyID, Keyword);
|
||||
Optional<Keyword> resolve_legacy_value_alias(PropertyID, Keyword);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue