@@ -1644,6 +1644,19 @@ fn push_frame(
1644
1644
None => WrClipId :: root ( builder. pipeline_id ) , // no clipping
1645
1645
} ;
1646
1646
1647
+ // push the hit-testing tag if any
1648
+ if let Some ( hit_tag) = frame. tag {
1649
+ builder. push_hit_test ( & WrCommonItemProperties {
1650
+ clip_rect : WrLayoutRect :: new (
1651
+ WrLayoutPoint :: new ( 0.0 , 0.0 ) ,
1652
+ WrLayoutSize :: new ( frame. size . width , frame. size . height ) ,
1653
+ ) ,
1654
+ spatial_id : rect_spatial_id,
1655
+ clip_id : parent_clip_id,
1656
+ flags : WrPrimitiveFlags :: empty ( ) ,
1657
+ } , ( hit_tag. 0 , 0 ) ) ;
1658
+ }
1659
+
1647
1660
// if let Some(image_mask) -> define_image_mask_clip()
1648
1661
for child in frame. children {
1649
1662
push_display_list_msg ( document_id, render_api, builder, child, rect_spatial_id, children_clip_id, positioned_items, current_hidpi_factor) ;
@@ -1712,6 +1725,30 @@ fn push_scroll_frame(
1712
1725
) ,
1713
1726
) ;
1714
1727
1728
+ // push the scroll hit-testing tag if any
1729
+ builder. push_hit_test ( & WrCommonItemProperties {
1730
+ clip_rect : WrLayoutRect :: new (
1731
+ WrLayoutPoint :: new ( 0.0 , 0.0 ) ,
1732
+ WrLayoutSize :: new ( scroll_frame. content_rect . size . width , scroll_frame. content_rect . size . height ) ,
1733
+ ) ,
1734
+ spatial_id : scroll_frame_clip_info. spatial_id ,
1735
+ clip_id : scroll_frame_clip_info. clip_id ,
1736
+ flags : WrPrimitiveFlags :: empty ( ) ,
1737
+ } , ( scroll_frame. scroll_tag . 0 . 0 , 0 ) ) ;
1738
+
1739
+ // additionally push the hit tag of the frame if there is any
1740
+ if let Some ( hit_tag) = scroll_frame. frame . tag {
1741
+ builder. push_hit_test ( & WrCommonItemProperties {
1742
+ clip_rect : WrLayoutRect :: new (
1743
+ WrLayoutPoint :: new ( 0.0 , 0.0 ) ,
1744
+ WrLayoutSize :: new ( scroll_frame. frame . size . width , scroll_frame. frame . size . height ) ,
1745
+ ) ,
1746
+ spatial_id : scroll_frame_clip_info. spatial_id ,
1747
+ clip_id : scroll_frame_clip_info. clip_id ,
1748
+ flags : WrPrimitiveFlags :: empty ( ) ,
1749
+ } , ( hit_tag. 0 , 0 ) ) ;
1750
+ }
1751
+
1715
1752
for child in scroll_frame. frame . children {
1716
1753
push_display_list_msg (
1717
1754
document_id,
0 commit comments