RESOLVED FIXED6447
KCanvas needs to be redesigned to fill & stroke at once
https://bugs.webkit.org/show_bug.cgi?id=6447
Summary KCanvas needs to be redesigned to fill & stroke at once
Eric Seidel (no email)
Reported 2006-01-09 05:26:46 PST
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).
Attachments
second stage of refactor (leaks still) (32.96 KB, patch)
2006-01-13 17:56 PST, Alexander Kellett
no flags
remove m_style from kcanvasrenderingstyle and make used methods static (34.46 KB, patch)
2006-01-14 02:41 PST, Alexander Kellett
no flags
third version of patch, move the statics into a new class KSVGPainterFactory (35.94 KB, patch)
2006-01-14 04:52 PST, Alexander Kellett
no flags
updated patch against current svn (35.98 KB, patch)
2006-01-14 14:31 PST, Alexander Kellett
eric: review+
Alexander Kellett
Comment 1 2006-01-13 17:56:37 PST
Created attachment 5656 [details] second stage of refactor (leaks still)
Alexander Kellett
Comment 2 2006-01-14 02:41:21 PST
Created attachment 5658 [details] remove m_style from kcanvasrenderingstyle and make used methods static
Alexander Kellett
Comment 3 2006-01-14 04:52:22 PST
Created attachment 5665 [details] third version of patch, move the statics into a new class KSVGPainterFactory
Alexander Kellett
Comment 4 2006-01-14 14:31:06 PST
Created attachment 5677 [details] updated patch against current svn
Eric Seidel (no email)
Comment 5 2006-01-14 17:54:02 PST
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.
Eric Seidel (no email)
Comment 6 2006-01-14 18:37:09 PST
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.
Note You need to log in before you can comment on or make changes to this bug.