|
@@ -65,10 +65,9 @@ void SVGPathPaintable::paint(PaintContext& context, PaintPhase phase) const
|
|
auto const* svg_node = layout_box().first_ancestor_of_type<Layout::SVGSVGBox>();
|
|
auto const* svg_node = layout_box().first_ancestor_of_type<Layout::SVGSVGBox>();
|
|
auto svg_element_rect = svg_node->paintable_box()->absolute_rect();
|
|
auto svg_element_rect = svg_node->paintable_box()->absolute_rect();
|
|
|
|
|
|
- // FIXME: This should not be trucated to an int.
|
|
|
|
DisplayListRecorderStateSaver save_painter { context.display_list_recorder() };
|
|
DisplayListRecorderStateSaver save_painter { context.display_list_recorder() };
|
|
|
|
|
|
- auto offset = context.floored_device_point(svg_element_rect.location()).to_type<int>().to_type<float>();
|
|
|
|
|
|
+ auto offset = context.rounded_device_point(svg_element_rect.location()).to_type<int>().to_type<float>();
|
|
auto maybe_view_box = svg_node->dom_node().view_box();
|
|
auto maybe_view_box = svg_node->dom_node().view_box();
|
|
|
|
|
|
auto paint_transform = computed_transforms().svg_to_device_pixels_transform(context);
|
|
auto paint_transform = computed_transforms().svg_to_device_pixels_transform(context);
|