summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-10-14 14:16:26 +0200
committerMoonchild <moonchild@palemoon.org>2023-10-14 14:16:26 +0200
commit4df8e7664af00cc7d12edbd1b75be95f1a10cc8a (patch)
treea30a7c88822effa6f85ec110a910e6992d333a52 /dom/webidl
parentcdfd243b5ab6848fe169e6aef426d953b296ffbd (diff)
downloaduxp-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.webidl8
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"]