mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
gfx: Clip the background properly when border-radius
is used.
Improves Reddit, GitHub, etc.
This commit is contained in:
parent
b22b29533a
commit
cc7cacfd5f
12 changed files with 356 additions and 119 deletions
|
@ -47,7 +47,7 @@ impl DisplayListOptimizer {
|
|||
where I: Iterator<&'a DisplayItem> {
|
||||
for display_item in display_items {
|
||||
if self.visible_rect.intersects(&display_item.base().bounds) &&
|
||||
self.visible_rect.intersects(&display_item.base().clip_rect) {
|
||||
display_item.base().clip.might_intersect_rect(&self.visible_rect) {
|
||||
result_list.push_back((*display_item).clone())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue