rsvg-cairo-draw: Comment on how we should be computing bounding boxes for viewports/clipping

parent fd6f94b9
......@@ -341,6 +341,19 @@ rsvg_cairo_render_path_builder (RsvgDrawingCtx * ctx, RsvgPathBuilder *builder)
_rendering_ time speedups, are these rather expensive operations
really needed here? */
/* FIXME: See https://www.w3.org/TR/SVG/coords.html#ObjectBoundingBox for
* discussion on how to compute bounding boxes to be used for viewports and
* clipping. It looks like we should be using cairo_path_extents() for
* that, not cairo_fill_extents().
*
* We may need to maintain *two* sets of bounding boxes - one for
* viewports/clipping, and one for user applications like a
* rsvg_compute_ink_rect() function in the future.
*
* See https://bugzilla.gnome.org/show_bug.cgi?id=760112 for discussion of a
* public API to get the ink rectangle.
*/
/* Bounding box for fill
*
* Unlike the case for stroke, for fills we always compute the bounding box.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment