Bug 50682 - feColorMatrix calculation for type matrix does not incorporate channel offsets
Summary: feColorMatrix calculation for type matrix does not incorporate channel offsets
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 05:30 PST by Pieter Senster
Modified: 2010-12-14 03:03 PST (History)
4 users (show)

See Also:


Attachments
Testcase for feColorMatrix using offsets (861 bytes, image/svg+xml)
2010-12-08 08:06 PST, Pieter Senster
no flags Details
Proposed patch (21.61 KB, patch)
2010-12-09 03:18 PST, Pieter Senster
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter Senster 2010-12-08 05:30:20 PST
In FEColorMatrix.cpp, the 'offset' matrix values (the fifth column in the matrix) are not used to calculate the result of a color transformation. The correct matrix multiplication is stated here: http://www.w3.org/TR/SVG/filters.html#feColorMatrixElement.
Comment 1 Pieter Senster 2010-12-08 08:06:05 PST
Created attachment 75906 [details]
Testcase for feColorMatrix using offsets
Comment 2 Pieter Senster 2010-12-09 03:18:02 PST
Created attachment 76037 [details]
Proposed patch
Comment 3 Nikolas Zimmermann 2010-12-09 04:10:59 PST
Looks good to me, adding Dirk to review.
Comment 4 Dirk Schulze 2010-12-10 06:37:08 PST
Comment on attachment 76037 [details]
Proposed patch

r=me. Sorry for the late response.
Comment 5 WebKit Commit Bot 2010-12-14 03:03:10 PST
Comment on attachment 76037 [details]
Proposed patch

Clearing flags on attachment: 76037

Committed r74010: <http://trac.webkit.org/changeset/74010>
Comment 6 WebKit Commit Bot 2010-12-14 03:03:15 PST
All reviewed patches have been landed.  Closing bug.