LibGC+LibJS+LibWeb: Add workaround for Swift boolean bitfield issue

This patch adds a workaround for a Swift issue where boolean bitfields
with getters and setters in SWIFT_UNSAFE_REFERENCE types are improperly
imported, causing an ICE.
This commit is contained in:
Andrew Kaster 2025-03-22 18:58:04 -06:00 committed by Andrew Kaster
commit e4c88915ab
Notes: github-actions[bot] 2025-04-03 22:49:40 +00:00
8 changed files with 60 additions and 43 deletions

View file

@ -11,10 +11,10 @@
namespace Web::CSS {
struct RequiredInvalidationAfterStyleChange {
bool repaint : 1 { false };
bool rebuild_stacking_context_tree : 1 { false };
bool relayout : 1 { false };
bool rebuild_layout_tree : 1 { false };
bool repaint BOOL_BITFIELD { false };
bool rebuild_stacking_context_tree BOOL_BITFIELD { false };
bool relayout BOOL_BITFIELD { false };
bool rebuild_layout_tree BOOL_BITFIELD { false };
void operator|=(RequiredInvalidationAfterStyleChange const& other)
{