mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
0f42d5ec3e
commit
848a250b29
Notes:
github-actions[bot]
2025-04-09 17:47:03 +00:00
Author: https://github.com/AtkinsSJ
Commit: 848a250b29
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4285
Reviewed-by: https://github.com/tcl3 ✅
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
Add a link
Reference in a new issue