mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00:00
LibWeb: Convert trivial attributes to FrozenArray
This commit is contained in:
parent
62167d923c
commit
ad34fdad48
Notes:
github-actions[bot]
2025-04-25 14:44:52 +00:00
Author: https://github.com/trflynn89
Commit: ad34fdad48
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4473
Reviewed-by: https://github.com/gmta ✅
6 changed files with 10 additions and 17 deletions
|
@ -3,6 +3,5 @@
|
||||||
// https://drafts.csswg.org/css-cascade-5/#the-csslayerstatementrule-interface
|
// https://drafts.csswg.org/css-cascade-5/#the-csslayerstatementrule-interface
|
||||||
[Exposed=Window]
|
[Exposed=Window]
|
||||||
interface CSSLayerStatementRule : CSSRule {
|
interface CSSLayerStatementRule : CSSRule {
|
||||||
// FIXME: Should be a FrozenArray<CSSOMString>
|
readonly attribute FrozenArray<CSSOMString> nameList;
|
||||||
readonly attribute sequence<CSSOMString> nameList;
|
|
||||||
};
|
};
|
|
@ -7,8 +7,7 @@ interface ClipboardItem {
|
||||||
optional ClipboardItemOptions options = {});
|
optional ClipboardItemOptions options = {});
|
||||||
|
|
||||||
readonly attribute PresentationStyle presentationStyle;
|
readonly attribute PresentationStyle presentationStyle;
|
||||||
// FIXME: Should be a FrozenArray<DOMString>
|
readonly attribute FrozenArray<DOMString> types;
|
||||||
readonly attribute sequence<DOMString> types;
|
|
||||||
|
|
||||||
Promise<Blob> getType(DOMString type);
|
Promise<Blob> getType(DOMString type);
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ interface DataTransfer {
|
||||||
[FIXME] undefined setDragImage(Element image, long x, long y);
|
[FIXME] undefined setDragImage(Element image, long x, long y);
|
||||||
|
|
||||||
// old interface
|
// old interface
|
||||||
readonly attribute sequence<DOMString> types; // FIXME: This should be FrozenArray<DOMString>
|
readonly attribute FrozenArray<DOMString> types;
|
||||||
DOMString getData(DOMString format);
|
DOMString getData(DOMString format);
|
||||||
[FIXME] undefined setData(DOMString format, DOMString data);
|
[FIXME] undefined setData(DOMString format, DOMString data);
|
||||||
[FIXME] undefined clearData(optional DOMString format);
|
[FIXME] undefined clearData(optional DOMString format);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// https://html.spec.whatwg.org/multipage/system-state.html#navigatorlanguage
|
// https://html.spec.whatwg.org/multipage/system-state.html#navigatorlanguage
|
||||||
interface mixin NavigatorLanguage {
|
interface mixin NavigatorLanguage {
|
||||||
readonly attribute DOMString language;
|
readonly attribute DOMString language;
|
||||||
// FIXME: readonly attribute FrozenArray<DOMString> languages;
|
// FIXME: This is supposed always return the same object
|
||||||
// This is supposed to be a FrozenArray that always returns the same object
|
readonly attribute FrozenArray<DOMString> languages;
|
||||||
readonly attribute sequence<DOMString> languages;
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,8 +13,7 @@ interface IntersectionObserver {
|
||||||
readonly attribute (Element or Document)? root;
|
readonly attribute (Element or Document)? root;
|
||||||
readonly attribute DOMString rootMargin;
|
readonly attribute DOMString rootMargin;
|
||||||
readonly attribute DOMString scrollMargin;
|
readonly attribute DOMString scrollMargin;
|
||||||
// FIXME: `sequence<double>` should be `FrozenArray<double>`
|
readonly attribute FrozenArray<double> thresholds;
|
||||||
readonly attribute sequence<double> thresholds;
|
|
||||||
readonly attribute long delay;
|
readonly attribute long delay;
|
||||||
readonly attribute boolean trackVisibility;
|
readonly attribute boolean trackVisibility;
|
||||||
undefined observe(Element target);
|
undefined observe(Element target);
|
||||||
|
|
|
@ -6,10 +6,7 @@
|
||||||
interface ResizeObserverEntry {
|
interface ResizeObserverEntry {
|
||||||
readonly attribute Element target;
|
readonly attribute Element target;
|
||||||
readonly attribute DOMRectReadOnly contentRect;
|
readonly attribute DOMRectReadOnly contentRect;
|
||||||
// FIXME: Return FrozenArray<ResizeObserverSize> instead of any.
|
readonly attribute FrozenArray<ResizeObserverSize> borderBoxSize;
|
||||||
[ImplementedAs=border_box_size_js_array] readonly attribute any borderBoxSize;
|
readonly attribute FrozenArray<ResizeObserverSize> contentBoxSize;
|
||||||
// FIXME: Return FrozenArray<ResizeObserverSize> instead of any.
|
readonly attribute FrozenArray<ResizeObserverSize> devicePixelContentBoxSize;
|
||||||
[ImplementedAs=content_box_size_js_array] readonly attribute any contentBoxSize;
|
|
||||||
// FIXME: Return FrozenArray<ResizeObserverSize> instead of any.
|
|
||||||
[ImplementedAs=device_pixel_content_box_size_js_array] readonly attribute any devicePixelContentBoxSize;
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue