aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/webidls
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2025-03-19 09:33:11 +0100
committerGitHub <noreply@github.com>2025-03-19 08:33:11 +0000
commit6be7612d165ab15b5df383fb378633b707a6f782 (patch)
treedfe65c91e03219320718671b5ca1713ee408635c /components/script_bindings/webidls
parent07e06f5635b95b90144caa198a941fc024f606b7 (diff)
downloadservo-6be7612d165ab15b5df383fb378633b707a6f782.tar.gz
servo-6be7612d165ab15b5df383fb378633b707a6f782.zip
script: Implement `Range::getClientRects` and `Range::getBoundingClientRect` (#35993)
* Add doc comments to boundary point Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Allow querying content box of text fragments Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement Range::getBoundingClientRect Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/script_bindings/webidls')
-rw-r--r--components/script_bindings/webidls/Range.webidl5
1 files changed, 2 insertions, 3 deletions
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<DOMRect> getClientRects();
- // [NewObject]
- // DOMRect getBoundingClientRect();
+ DOMRectList getClientRects();
+ [NewObject] DOMRect getBoundingClientRect();
};