LibWeb: Enable in Windows CI

This commit is contained in:
ayeteadoe 2025-06-27 22:14:03 -07:00 committed by Andrew Kaster
commit dbba6c0df9
Notes: github-actions[bot] 2025-06-30 16:51:45 +00:00
6 changed files with 19 additions and 4 deletions

View file

@ -414,7 +414,7 @@ static NamedCharacterReferenceCodepoints g_named_character_reference_codepoints_
generator.append(R"~~~(};
struct DafsaNode {
struct __attribute__((packed)) DafsaNode {
// The actual alphabet of characters used in the list of named character references only
// includes 61 unique characters ('1'...'8', ';', 'a'...'z', 'A'...'Z'), but we have
// bits to spare and encoding this as a `u8` allows us to avoid the need for converting
@ -441,7 +441,11 @@ struct DafsaNode {
// There are 3872 nodes in our DAFSA, so all indexes could fit in a u12.
u16 child_index : 14;
};
static_assert(sizeof(DafsaNode) == 4);
#if !defined(AK_OS_WINDOWS)
static_assert(sizeof(DafsaNode) == 4);
#else
static_assert(sizeof(DafsaNode) == 5);
#endif
static DafsaNode g_named_character_reference_dafsa[] = {
{ 0, 0, false, true, 1 },