> Krzysztof and Tomasz, could you have a quick look at this. I think
> gradients might need to be treated like clips, masks, and patterns.

As for representation in SP Tree, patterns and gradients work the same way. SPPattern 
refactoring affects rendering and NR tree only. 

While working on GSOC i also stumbled upon the problem that when paint servers
are deleted and added to SP tree, invalid memory accesses (including malloc internal data
corruption) happen.