Bug 12126
Summary: | RenderSVGImage seems to suffer from integer overflow | ||
---|---|---|---|
Product: | WebKit | Reporter: | Andreas Neumann <a.neumann> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | Keywords: | HasReduction |
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac (PowerPC) | ||
OS: | OS X 10.4 | ||
URL: | http://www.carto.net/neumann/webkitsvgbugs/schweiz.svg |
Andreas Neumann
In this and some other examples (e.g. http://www.carto.net/papers/svg/navigationTools/index.svg) the linked raster image is not displayed. See Opera and Batik for correct rendering.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
Looking at the activity viewer, it definitely successfully loaded ch_relief.jpg, but it's failing to display it for some reason.
Eric Seidel (no email)
It turns out this is related to some sort of overflow value on the image position:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="350000 0 350000 233540">
<image xlink:href="ch_relief.jpg" x="350000" y="0" width="350000" height="233540"/>
</svg>
that reduction fails. However this alternative does not fail:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="340000 0 350000 233540">
<image xlink:href="ch_relief.jpg" x="340000" y="0" width="350000" height="233540"/>
</svg>
note the 340000 instead of 350000
Nikolas Zimmermann
This problem only appears because we use RenderImage::paint() if there is no preserveAspectRatio specified - this causes the problem. Will be fixed soon.
Nikolas Zimmermann
Landed in r20469.