Currently KRenderingPaintServers are sometimes created even when there shouldn't be any fill/stroke. In the tree dump this can be seen as [stroke={}] and [fill={}]. Creating paint servers for strokes also has the side effect that bounding box calculation is effected. The problem lays in KCanvasRenderingStyle::updateFill/Stroke.
Created attachment 3780 [details] patch to KCanvasRenderingStyle + test cases Calling strokePainter()/fillPainter() will create a painter if none exists. Don't do this if there shouldn't be any fill/stroke
Created attachment 3781 [details] fix mime type, this is a .gz file
Comment on attachment 3781 [details] fix mime type, this is a .gz file Looks good to me. r=me.