The layout test attached to bug 35261 is also crashing on Leopard Intel Debug. https://bugs.webkit.org/attachment.cgi?id=49654&action=prettypatch The original bug is a fix for the crash in Skia, this bug is to fix the debug only crash in CG.
This test is now committed at svg/custom/tiling-regular-hexagonal-crash.svg, but skipped on mac.
(In reply to comment #1) > This test is now committed at svg/custom/tiling-regular-hexagonal-crash.svg, > but skipped on mac. What is the problem here? Changing Image might help but I would like to fix the real issue.
(In reply to comment #2) > (In reply to comment #1) > > This test is now committed at svg/custom/tiling-regular-hexagonal-crash.svg, > > but skipped on mac. > > What is the problem here? Changing Image might help but I would like to fix the > real issue. Ok, looks like the problem is a tile width or height of 0.
Not only that we don't check for empty tile rects: IntSize imageSize(lroundf(patternBoundariesIncludingOverflow.width()), lroundf(patternBoundariesIncludingOverflow.height())); clampImageBufferSizeToViewport(document()->view(), imageSize); OwnPtr<ImageBuffer> patternImage = ImageBuffer::create(imageSize); it also looks like we have a parsing bug: height=" 270" We don't ignore leading zeros.
Looks fine to me on SnowLeopard. Are there any remaining issues here?
(In reply to comment #4) > > it also looks like we have a parsing bug: > > height=" 270" > > We don't ignore leading zeros. It would be incorrect to ignore leading zeros. http://www.w3.org/TR/SVG/types.html#DataTypeLength
(In reply to comment #6) > (In reply to comment #4) > > > > it also looks like we have a parsing bug: > > > > height=" 270" > > > > We don't ignore leading zeros. > > It would be incorrect to ignore leading zeros. http://www.w3.org/TR/SVG/types.html#DataTypeLength At first sorry for my typing error, I meant spaces instead of zeros. Nevertheless, you're right Robert. <svg xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width=" 100" height="10" fill="red"/> <rect x="0" y="20" width="100 " height="10" fill="red"/> </svg> Both, WebKit and Firefox, don't draw the rects. And this is correct according to the spec.
The root of this problem was fixed. Closing the bug now.