Bug 16188

Summary: SVG text redraw issues during scroll
Product: WebKit Reporter: Stefan Springer <sspr>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: hirenj
Priority: P2 Keywords: NeedsReduction
Version: 523.x (Safari 3)   
Hardware: PC   
OS: Windows XP   
Bug Depends on: 23881    
Bug Blocks: 19366    
Attachments:
Description Flags
(X)HTML file where the described problem occurs (the displayed formula is SVG).
none
Testcase for showcasing text rendering issue
none
Add text repaint test hyatt: review+

Description Stefan Springer 2007-11-29 05:12:54 PST
If SVG content is outside the visible space, and comes only into view when scrolling, the SVG might be drawn only partially. The problem is best reproducable when scrolling is slowly. Attachment will follow.
Comment 1 Stefan Springer 2007-11-29 05:14:48 PST
Created attachment 17590 [details]
(X)HTML file where the described problem occurs (the displayed formula is SVG).
Comment 2 Stefan Springer 2007-11-29 07:07:28 PST
Rendering of formula in the example file (see attachment in comment #1) is also incomplete (in another way, there is some incorrect clipping) when the displayed font size is made smaller via Control-"-" (making font size bigger via Control-"+" is OK).
Comment 3 Eric Seidel (no email) 2007-11-30 01:39:33 PST
I think this is a text-anchor="middle" redraw problem.  I think we already have a bug on this.
Comment 4 Eric Seidel (no email) 2007-11-30 01:42:35 PST
Hum... maybe I was remembering bug 15564 which is not really related.

Bug 15386 is possibly related as well.
Comment 5 Eric Seidel (no email) 2007-11-30 01:44:09 PST
Also possibly related to bug 15352 or bug 15402.

We'll need to build a smaller reduction which just shows the repainting bug.
Comment 6 Adam Rofer 2007-11-30 13:08:48 PST
I would like to add that this seems possibly related to another bug: <a href="http://bugs.webkit.org/show_bug.cgi?id=15799">Bug 15799</a>

I could be wrong, but this bug also relates to text repainting issues.
Comment 7 Hiren Joshi 2009-04-06 17:25:15 PDT
Created attachment 29295 [details]
Testcase for showcasing text rendering issue 

When you resize the window, you get similar text cutoff behaviour as you get when scrolling. Incidentally, only happens on the rightmost SVG included in the parent XHTML document.
Comment 8 Hiren Joshi 2009-04-06 17:27:17 PDT
Rendering issue also present on Webkit nightly 5528.16, r42162 on Leopard (10.5.6)
Comment 9 Eric Seidel (no email) 2009-04-17 10:26:02 PDT
This is not fixed by bug 25268, but it's probably the same as bug 19366 and should be easy to fix in a follow-up patch.
Comment 10 Eric Seidel (no email) 2009-04-28 14:40:31 PDT
This was fixed by the fix for bug 25431.  I'll make a test case for this case shortly.
Comment 11 Eric Seidel (no email) 2009-04-28 14:54:40 PDT
Created attachment 29863 [details]
Add text repaint test

 5 files changed, 96 insertions(+), 0 deletions(-)
Comment 12 Dave Hyatt 2009-04-28 14:57:03 PDT
Comment on attachment 29863 [details]
Add text repaint test

r=me
Comment 13 Eric Seidel (no email) 2009-04-28 14:59:57 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	LayoutTests/ChangeLog
	A	LayoutTests/platform/mac/svg/text/text-repaint-rects-expected.checksum
	A	LayoutTests/platform/mac/svg/text/text-repaint-rects-expected.png
	A	LayoutTests/platform/mac/svg/text/text-repaint-rects-expected.txt
	A	LayoutTests/svg/text/text-repaint-rects.xhtml
Committed r42964