~vcs-imports/librsvg/+git/librsvg:attribute-parsers-737

Last commit made on 2022-10-21
Get this branch:
git clone -b attribute-parsers-737 https://git.launchpad.net/~vcs-imports/librsvg/+git/librsvg

Branch merges

Branch information

Name:
attribute-parsers-737
Repository:
lp:~vcs-imports/librsvg/+git/librsvg

Recent commits

8a54a3c... by Federico Mena Quintero

filters/displacement_map.rs: use set_attribute()

e71ea36... by Federico Mena Quintero

text.rs: use set_attribute() in TSpan

I had missed that one...

9f871ec... by Federico Mena Quintero

filters/convolve_matrix.rs: use set_attribute()

I'll deal with the attributes that use NumberOptionalNumber later.

56352ea... by Federico Mena Quintero

filters/composite.rs: use set_attribute()

aed9bfd... by Federico Mena Quintero

filters/component_transfer.rs: use set_attribute()

1cbc5e7... by Federico Mena Quintero

filters::Primitive - make all the parse_*() methods infallible

Now that they fall back to the appropriate values, there's no need to
return a Result from them.

541a9b4... by Federico Mena Quintero

FilterContext::get_raw_input() - If a filter input is not found, fall back correctly per the spec

E.g. <feSomePrimitive in="nonexistent">

We used to return FilterError::InvalidInput, which would invalidate
the entire filter chain. Per the spec, when a named "in" or "in2" is
not found, we need to act as if that input were unspecified - i.e. the
last result in the filter chain, or SourceGraphic for the first
primitive in the chain.

This fixes the mouse's hat in https://gitlab.gnome.org/GNOME/librsvg/-/issues/912

7b39b4a... by Federico Mena Quintero

FilterContext: extract method to find a primitive's default input

9b36632... by Federico Mena Quintero

filters/color_matrix.rs: Separate functions for each matrix type

First set the initial value of the matrix that corresponds to the
operation_type, and then try to parse the final value. If the value
is invalid, the initial value remains unchanged - per the spec.

0fea4c7... by Federico Mena Quintero

ColorMatrix::saturate_matrix() - extract function