diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-09-30 15:50:47 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-10-18 09:15:55 +0200 |
commit | 770b3480910d255e4bbd78949c30c8324c57ae94 (patch) | |
tree | 45f06cd50a98c25fe9df2672b786f35919bff03d /components/script_layout_interface/message.rs | |
parent | ca08271345f78fa881c174545f5b69a8ccb78143 (diff) | |
download | servo-770b3480910d255e4bbd78949c30c8324c57ae94.tar.gz servo-770b3480910d255e4bbd78949c30c8324c57ae94.zip |
Use WebRender to compute text index on click events
This is the second half of switching over to WebRender for hit testing.
Now that WebRender gives us the location of the hit tested point in the
display item, we can use that to calculate text index.
Diffstat (limited to 'components/script_layout_interface/message.rs')
-rw-r--r-- | components/script_layout_interface/message.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs index 6f8009ecdd8..083167d6c34 100644 --- a/components/script_layout_interface/message.rs +++ b/components/script_layout_interface/message.rs @@ -120,7 +120,7 @@ pub enum ReflowGoal { ResolvedStyleQuery(TrustedNodeAddress, Option<PseudoElement>, PropertyId), OffsetParentQuery(TrustedNodeAddress), MarginStyleQuery(TrustedNodeAddress), - TextIndexQuery(TrustedNodeAddress, i32, i32), + TextIndexQuery(TrustedNodeAddress, Point2D<f32>), NodesFromPointQuery(Point2D<f32>, NodesFromPointQueryType), } |