Backed out changeset a3a7133456b4 (bug 1589198) for reftest at layout/reftests/svg/filters/filter-nested-filtering-02.svg. On a CLOSED TREE

This commit is contained in:
Daniel Varga 2019-11-19 15:51:58 +02:00
parent 790f56fb4a
commit 7f39a7bfe6
3 changed files with 1 additions and 15 deletions

View File

@ -4281,9 +4281,7 @@ impl PicturePrimitive {
// The picture's local rect is calculated as the union of the
// snapped primitive rects, which should result in a snapped
// local rect, unless it was inflated. This is also done during
// update visibility when calculating the picture's precise
// local rect.
// local rect, unless it was inflated.
let snap_surface_to_raster = SpaceSnapper::new_with_target(
surface.raster_spatial_node_index,
self.spatial_node_index,

View File

@ -2311,19 +2311,7 @@ impl PrimitiveStore {
// Inflate the local bounding rect if required by the filter effect.
// This inflaction factor is to be applied to the surface itself.
if pic.options.inflate_if_required {
// The picture's local rect is calculated as the union of the
// snapped primitive rects, which should result in a snapped
// local rect, unless it was inflated. This is also done during
// surface configuration when calculating the picture's
// estimated local rect.
let snap_pic_to_raster = SpaceSnapper::new_with_target(
surface.raster_spatial_node_index,
pic.spatial_node_index,
surface.device_pixel_scale,
frame_context.clip_scroll_tree,
);
surface_rect = rc.composite_mode.inflate_picture_rect(surface_rect, surface.inflation_factor);
surface_rect = snap_pic_to_raster.snap_rect(&surface_rect);
}
// Layout space for the picture is picture space from the

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB