mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
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:
parent
8bcf164e33
commit
952cf4bd50
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue