mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
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>
This commit is contained in:
parent
07e06f5635
commit
6be7612d16
8 changed files with 73 additions and 29 deletions
|
@ -94,10 +94,13 @@ impl AbstractRangeMethods<crate::DomTypeHolder> for AbstractRange {
|
|||
}
|
||||
}
|
||||
|
||||
/// <https://dom.spec.whatwg.org/#concept-range-bp>
|
||||
#[derive(DenyPublicFields, JSTraceable, MallocSizeOf)]
|
||||
#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
|
||||
pub(crate) struct BoundaryPoint {
|
||||
/// <https://dom.spec.whatwg.org/#boundary-point-node>
|
||||
node: MutDom<Node>,
|
||||
/// <https://dom.spec.whatwg.org/#concept-range-bp-offset>
|
||||
offset: Cell<u32>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue