[Webkit-unassigned] [Bug 29912] Avoid zero division during SVGPaintServerPattern::setup() in Chromium

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 7 08:07:53 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29912


Dirk Schulze <krit at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows Vista               |All
     Ever Confirmed|0                           |1
                 CC|                            |krit at webkit.org
             Status|UNCONFIRMED                 |NEW




--- Comment #5 from Dirk Schulze <krit at webkit.org>  2009-10-07 08:07:53 PDT ---
It is a general bug. I see it on WebKitGtk too. Get Floating point exception.

But this patch will definitely break a pixel-test, at least
stroked-pattern-expected.svg. Even when we don't have a pixel-test bot :-(

I wonder if we have to draw a pattern at all, if tileWidth or tileHeight are 0.
Since we don't have an image to draw.

tileHeight and tileWidth are the rounded results of
patternBoundaries().width(), patternBoundaries().height(). In the case that one
of the both boundaries are not 0 and < .5, we might set tileHeight or tileWidth
to 1.f. And make an early return if one of them is 0.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list