diff options
author | Moonchild <moonchild@palemoon.org> | 2023-10-14 14:16:26 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-10-14 14:16:26 +0200 |
commit | 4df8e7664af00cc7d12edbd1b75be95f1a10cc8a (patch) | |
tree | a30a7c88822effa6f85ec110a910e6992d333a52 /dom/webidl | |
parent | cdfd243b5ab6848fe169e6aef426d953b296ffbd (diff) | |
download | uxp-4df8e7664af00cc7d12edbd1b75be95f1a10cc8a.tar.gz |
Issue #2340 - Return an array (actually frozen sequence) for {border|content}BoxSize
Resolves #2340
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/ResizeObserver.webidl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dom/webidl/ResizeObserver.webidl b/dom/webidl/ResizeObserver.webidl index d764af7cbd..c1286d66a7 100644 --- a/dom/webidl/ResizeObserver.webidl +++ b/dom/webidl/ResizeObserver.webidl @@ -34,8 +34,12 @@ callback ResizeObserverCallback = void (sequence<ResizeObserverEntry> entries, R interface ResizeObserverEntry {
readonly attribute Element target;
readonly attribute DOMRectReadOnly? contentRect;
- readonly attribute ResizeObserverSize borderBoxSize;
- readonly attribute ResizeObserverSize contentBoxSize;
+ // We are using a [Pure, Cached, Frozen] sequence since `FrozenArray` is not implemented in webidl.
+ // This is functionally similar enough. As of #2340 Mozilla has not implemented this yet, either.
+ [Frozen, Cached, Pure]
+ readonly attribute sequence<ResizeObserverSize> borderBoxSize;
+ [Frozen, Cached, Pure]
+ readonly attribute sequence<ResizeObserverSize> contentBoxSize;
};
[Pref="layout.css.resizeobserver.enabled"]
|