aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list/builder.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-03-13 11:56:38 +0100
committerMartin Robinson <mrobinson@igalia.com>2023-03-15 12:25:29 +0100
commit6d4b7e7a226319b3b9e94bdc8f38e0b643f90ddb (patch)
treeb87457a7eb316706920bfb85b10dcfa9d5f35e7f /components/layout/display_list/builder.rs
parentd95c371d7965436285401dcf6ba3752cd28eec7b (diff)
downloadservo-6d4b7e7a226319b3b9e94bdc8f38e0b643f90ddb.tar.gz
servo-6d4b7e7a226319b3b9e94bdc8f38e0b643f90ddb.zip
Move hit testing information out of WebRender
Store hit testing information in a data structure that sits alongside the display list in the compositor. This will allow the compositor to store more information per-node. The data structure also takes care of de-duplicating information between successive display list entries. In the future, the data structure can be even more aggressive in producing smaller side hit testing lists, if necessary.
Diffstat (limited to 'components/layout/display_list/builder.rs')
-rw-r--r--components/layout/display_list/builder.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs
index 7dc85fec830..cad8b712142 100644
--- a/components/layout/display_list/builder.rs
+++ b/components/layout/display_list/builder.rs
@@ -413,11 +413,7 @@ impl<'a> DisplayListBuildState<'a> {
clipping_and_scrolling: ClippingAndScrolling,
) -> BaseDisplayItem {
BaseDisplayItem::new(
- DisplayItemMetadata {
- node,
- // Store cursor id in display list.
- pointing: cursor.map(|x| x as u16),
- },
+ DisplayItemMetadata { node, cursor },
clip_rect.to_layout(),
section,
self.current_stacking_context_id,