diff options
Diffstat (limited to 'components/layout/display_list_builder.rs')
-rw-r--r-- | components/layout/display_list_builder.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index 4a6da7b514b..ae2984f8091 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -499,6 +499,10 @@ impl FragmentDisplayListBuilding for Fragment { return } + if !absolute_fragment_bounds.intersects(clip_rect) { + return; + } + debug!("Fragment::build_display_list: intersected. Adding display item..."); if self.is_primary_fragment() { |