Bug 25460
| Summary: | Selection rects are wrong for text with SVG fonts | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | krit, zimmermann |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.5 | ||
| Bug Depends on: | 59085 | ||
| Bug Blocks: | |||
Eric Seidel (no email)
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Nikolas Zimmermann
Fixed in r89233.