From 6be7612d165ab15b5df383fb378633b707a6f782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Wed, 19 Mar 2025 09:33:11 +0100 Subject: script: Implement `Range::getClientRects` and `Range::getBoundingClientRect` (#35993) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add doc comments to boundary point Signed-off-by: Simon Wülker * Allow querying content box of text fragments Signed-off-by: Simon Wülker * Implement Range::getBoundingClientRect Signed-off-by: Simon Wülker * Update WPT expectations Signed-off-by: Simon Wülker --------- Signed-off-by: Simon Wülker --- components/script_bindings/webidls/Range.webidl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'components/script_bindings/webidls') diff --git a/components/script_bindings/webidls/Range.webidl b/components/script_bindings/webidls/Range.webidl index 7ba168ddb05..b3980639b2c 100644 --- a/components/script_bindings/webidls/Range.webidl +++ b/components/script_bindings/webidls/Range.webidl @@ -73,7 +73,6 @@ partial interface Range { // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-range-interface partial interface Range { - // sequence getClientRects(); - // [NewObject] - // DOMRect getBoundingClientRect(); + DOMRectList getClientRects(); + [NewObject] DOMRect getBoundingClientRect(); }; -- cgit v1.2.3