LibWeb/CSS: Mark CSSImportRule.media as nullable

See the linked spec issue for more details. The MediaList can be null
internally, and this was upsetting GCC as it meant our bindings code
was dereferencing a null pointer.
This commit is contained in:
Sam Atkins 2025-04-09 16:36:07 +01:00 committed by Tim Ledbetter
commit 848a250b29
Notes: github-actions[bot] 2025-04-09 17:47:03 +00:00

View file

@ -6,7 +6,8 @@
[Exposed=Window]
interface CSSImportRule : CSSRule {
readonly attribute USVString href;
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
// AD-HOC: media is null if styleSheet is null. Spec issue: https://github.com/w3c/csswg-drafts/issues/12063
[SameObject, PutForwards=mediaText] readonly attribute MediaList? media;
[SameObject, ImplementedAs=style_sheet_for_bindings] readonly attribute CSSStyleSheet? styleSheet;
[FIXME] readonly attribute CSSOMString? layerName;
readonly attribute CSSOMString? supportsText;