[Webkit-unassigned] [Bug 140812] New: Apply feTurbulence spec change to fix zero length vector generation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 22 19:31:21 PST 2015


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

            Bug ID: 140812
           Summary: Apply feTurbulence spec change to fix zero length
                    vector generation
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nikos.andronikos-webkit at cisra.canon.com.au
                CC: zimmermann at kde.org

A bug in the Filter Effects feTurbulence algorithm has recently been fixed in the spec.
Discussion:
https://lists.w3.org/Archives/Public/www-svg/2015Jan/0003.html
http://www.w3.org/2015/01/15-svg-minutes.html#item06

Updated spec:
http://dev.w3.org/fxtf/filters/#elementdef-feturbulence
Change is the addition of do while loop on these lines:
do
{ for (j = 0; j < 2; j++) fGradient[k][i][j] = (double)(((lSeed = random(lSeed)) % (BSize + BSize)) - BSize) / BSize; }

while(fGradient[k][i][0] == 0 && fGradient[k][i][1] == 0);

Test: http://jsfiddle.net/dodgeyhack/mo7x85zw/

This change is already landed in Chrome Canary and FireFox nightly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150123/07f40884/attachment-0002.html>


More information about the webkit-unassigned mailing list