Skip to content

length: make the type generic on whether it is signed

Paolo Borelli requested to merge pborelli/librsvg:length into master

We now encode in the type whether the length is signed or unsigned. This simplifies parsing of values (no need to validate manually with check_nonnegative). To reduce code churn and to help readability, the original Length type is renamed to CssLength and two aliases Length and ULength are added.

Edited by Paolo Borelli

Merge request reports