mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Trigger reflow on document.elementsFromPoint
This commit is contained in:
parent
d0856fd4cd
commit
7426d902a3
10 changed files with 86 additions and 33 deletions
|
@ -101,6 +101,7 @@ pub enum ReflowQueryType {
|
|||
OffsetParentQuery(TrustedNodeAddress),
|
||||
MarginStyleQuery(TrustedNodeAddress),
|
||||
TextIndexQuery(TrustedNodeAddress, i32, i32),
|
||||
NodesFromPoint(Point2D<f32>, Point2D<f32>),
|
||||
}
|
||||
|
||||
/// Information needed for a reflow.
|
||||
|
|
|
@ -40,7 +40,8 @@ pub trait LayoutRPC {
|
|||
fn margin_style(&self) -> MarginStyleResponse;
|
||||
/// Requests the list of not-yet-loaded images that were encountered in the last reflow.
|
||||
fn pending_images(&self) -> Vec<PendingImage>;
|
||||
fn nodes_from_point(&self, page_point: Point2D<f32>, client_point: Point2D<f32>) -> Vec<UntrustedNodeAddress>;
|
||||
/// Requests the list of nodes from the given point.
|
||||
fn nodes_from_point(&self) -> Vec<UntrustedNodeAddress>;
|
||||
|
||||
fn text_index(&self) -> TextIndexResponse;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue