Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync changes from mozilla-central gfx/wr #3859

Merged
merged 4 commits into from Feb 14, 2020
Prev

Bug 1615141 - Fix panic in picture cache dependency building. r=Bert

  • Loading branch information
gw3583 authored and moz-gfx committed Feb 14, 2020
commit 13aac2e019feff3da838f89c511b60d22b19f544
@@ -2541,10 +2541,17 @@ impl TileCacheInstance {
frame_context.spatial_tree,
);

current_pic_clip_rect = map_local_to_surface
.map(&current_pic_clip_rect)
.expect("bug: unable to map")
.inflate(surface.inflation_factor, surface.inflation_factor);
// Map the rect into the parent surface, and inflate if this surface requires
// it. If the rect can't be mapping (e.g. due to an invalid transform) then
// just bail out from the dependencies and cull this primitive.
current_pic_clip_rect = match map_local_to_surface.map(&current_pic_clip_rect) {
Some(rect) => {
rect.inflate(surface.inflation_factor, surface.inflation_factor)
}
None => {
return false;
}
};

current_spatial_node_index = surface.surface_spatial_node_index;
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.