mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
gfx: Stop cloning clipping regions so much.
Clipping regions can contain vectors and so can be expensive to copy.
This commit is contained in:
parent
983576ebaa
commit
940bff1f9c
5 changed files with 52 additions and 52 deletions
|
@ -1184,7 +1184,8 @@ impl BaseFlow {
|
|||
|
||||
for item in items.iter() {
|
||||
let base_item = item.item.base();
|
||||
let paint_bounds = base_item.clip.clone().intersect_rect(&base_item.bounds);
|
||||
let mut paint_bounds = base_item.clip.clone();
|
||||
paint_bounds.intersect_rect(&base_item.bounds);
|
||||
if !paint_bounds.might_be_nonempty() {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue