summaryrefslogtreecommitdiff
path: root/src/svgtiny_gradient.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix various bugs which caused ASAN and UBSAN to be upsetDaniel Silverstone2018-07-291-2/+7
|
* Parse: Make the parse state have two sets of gradient details.Michael Drake2016-10-261-66/+74
| | | | | | | | | | | | | | | | | | One for fills and another for strokes. This stops an SVG such as <svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="foo"> <stop stop-color="#69f" offset="0"/> <stop stop-color="#468" offset="1"/> </linearGradient> </defs> <path fill="url(#foo)" stroke='url(#bar)' d='M10 10 H 90 V 90 H 10 Z' /> </svg> from getting its fill gradient details trampled when we reset the gradient for the the missing bar gadient definition. Note, we only handle linearGradient on the fill anyway.
* prevent division by zero for gradient with no points and add testVincent Sanders2016-08-311-2/+8
|
* Fix to use list_size accessor.Michael Drake2013-08-231-1/+1
|
* Minor tidyup.Michael Drake2013-08-231-10/+7
|
* Move gradient logging to svgtiny_gradient.c, and suppress when not debugging ↵Michael Drake2013-08-231-0/+5
| | | | gradients.
* Suppress most gradient debug.Michael Drake2013-08-221-0/+18
|
* Explicitly check if r0 or r1 are NaN, as if they are, on x86 the function ↵Chris Young2013-01-051-1/+7
| | | | evaluates as 0 (which is already handled), but on PPC the function evaluates to a negative value, causing the following for loop to become infinite.
* Replace dom_string_length with dom_string_byte_length -- faster and more correctDaniel Silverstone2012-11-031-15/+4
|
* Void myself unpleasantly in order to satisfy RISC OS toolchainDaniel Silverstone2012-11-031-1/+2
|
* The library now buildsDaniel Silverstone2012-11-031-74/+151
|
* More work towards libdom conversionDaniel Silverstone2012-11-031-44/+45
|
* Use built-in strndup if the platform we're targetting doesn't have oneJohn Mark Bell2010-12-291-1/+0
| | | | svn path=/trunk/libsvgtiny/; revision=11140
* More of the C89... really do test it please!François Revel2010-01-021-37/+59
| | | | svn path=/trunk/libsvgtiny/; revision=9772
* Squash warningsJohn Mark Bell2009-08-241-3/+4
| | | | svn path=/trunk/libsvgtiny/; revision=9423
* Beginnings of port to core buildsystemJohn Mark Bell2009-08-241-0/+648
svn path=/trunk/libsvgtiny/; revision=9419