mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
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:
parent
790f56fb4a
commit
7f39a7bfe6
@ -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,
|
||||
|
@ -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 |
Loading…
Reference in New Issue
Block a user