Bug 25460 - Selection rects are wrong for text with SVG fonts
Summary: Selection rects are wrong for text with SVG fonts
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 59085
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-28 16:00 PDT by Eric Seidel (no email)
Modified: 2011-06-20 01:28 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-04-28 16:00:23 PDT
This can be seen by:
http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-pservers-grad-08-b.html

We use selection rects to compute the repaint rect for text.  In the above case "Gradient On Stroke" has the top of the 'G' clipped off.  Also, if you try and select the text, you'll see that the individual character rects are wrong.

Some of this is due to use of objectBoundingBox() where we should be using repaintRectInLocalCoordinates(), but fixing those does not fix the whole bug.
Comment 1 Nikolas Zimmermann 2011-06-20 01:28:52 PDT
Fixed in r89233.