Incorrect suggestion in the C API docs
Where https://gnome.pages.gitlab.gnome.org/librsvg/Rsvg-2.0/migrating.html says, "If you need to do this by hand, use rsvg_handle_get_geometry_for_layer", it should probably be rsvg_handle_get_geometry_for_element
. The former needs a viewport; the latter doesn't and is actually what the docs are talking about.