/// Whether an SVG document is being rendered standalone or referenced from an `<image>` element.
/// However, when an SVG document is referenced from an `<image>` element, as in `<image href="foo.svg"/>`,
/// its `preserveAspectRatio` needs to be ignored so that the one from the `<image>` element can
pub fn with_saved_cr<O, F>(cr: &cairo::Context, f: F) -> Result<O, InternalRenderingError>
fn set_gradient(&mut self, gradient: &UserSpaceGradient) -> Result<(), InternalRenderingError> {
let (affine, caffine) = if scwscale.approx_eq_cairo(1.0) && schscale.approx_eq_cairo(1.0) {
if clipping && !element_can_be_used_inside_use_inside_clip_path(&child.borrow_element()) {
pub fn compute_path_extents(path: &Path) -> Result<Option<Rect>, InternalRenderingError> {
pub fn create_pango_context(font_options: &FontOptions, transform: &Transform) -> pango::Context {
fn new(current: Transform, initial: Transform, cr_stack_depth: usize) -> CompositingAffines {