KCanvas needs to be redesigned to fill & stroke at once This is a continuation of 5748. In the previous bug, Alexander made great progress at removing crufty pieces of KCanvas. However several things remain: 1. Completely remove KCanvasRenderingStyle (or at least remove all instance variables). 2. Update PaintServers to not paint directly, but rather have an apply(STROKE | FILL) method which applies their stoke/fill properties to the current context. 3. Change RenderPathQuartz to call CGContextDrawPath, and thus both stroke and fill a path in a single call (large perf. gain).
Created attachment 5656 [details] second stage of refactor (leaks still)
Created attachment 5658 [details] remove m_style from kcanvasrenderingstyle and make used methods static
Created attachment 5665 [details] third version of patch, move the statics into a new class KSVGPainterFactory
Created attachment 5677 [details] updated patch against current svn
Comment on attachment 5658 [details] remove m_style from kcanvasrenderingstyle and make used methods static Be sure to mark your old patches as no longer needing review when you mark new ones for review.
Comment on attachment 5677 [details] updated patch against current svn This is good enough to land. I removed the (now completely empty) KCanvasRenderingStyle class while landing.