Changeset 74010 in webkit


Ignore:
Timestamp:
Dec 14, 2010 3:02:56 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-14 Pieter Senster <psenster@google.com>

Reviewed by Dirk Schulze.

Test that the channel offsets in the ColorMatrix filter are correctly incorporated
https://bugs.webkit.org/show_bug.cgi?id=50682

  • platform/mac/svg/filters/feColorMatrix-offset-expected.checksum: Added.
  • platform/mac/svg/filters/feColorMatrix-offset-expected.png: Added.
  • platform/mac/svg/filters/feColorMatrix-offset-expected.txt: Added.
  • svg/filters/feColorMatrix-offset.svg: Added.

2010-12-14 Pieter Senster <psenster@google.com>

Reviewed by Dirk Schulze.

Incorporate the channel offsets from the ColorMatrix filter in the filter calculation
https://bugs.webkit.org/show_bug.cgi?id=50682

Test: svg/filters/feColorMatrix-offset.svg

  • platform/graphics/filters/FEColorMatrix.cpp: (WebCore::matrix):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r74002 r74010  
     12010-12-14  Pieter Senster  <psenster@google.com>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        Test that the channel offsets in the ColorMatrix filter are correctly incorporated
     6        https://bugs.webkit.org/show_bug.cgi?id=50682
     7
     8        * platform/mac/svg/filters/feColorMatrix-offset-expected.checksum: Added.
     9        * platform/mac/svg/filters/feColorMatrix-offset-expected.png: Added.
     10        * platform/mac/svg/filters/feColorMatrix-offset-expected.txt: Added.
     11        * svg/filters/feColorMatrix-offset.svg: Added.
     12
    1132010-12-13  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r74009 r74010  
     12010-12-14  Pieter Senster  <psenster@google.com>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        Incorporate the channel offsets from the ColorMatrix filter in the filter calculation
     6        https://bugs.webkit.org/show_bug.cgi?id=50682
     7
     8        Test: svg/filters/feColorMatrix-offset.svg
     9
     10        * platform/graphics/filters/FEColorMatrix.cpp:
     11        (WebCore::matrix):
     12
    1132010-12-14  Jarred Nicholls  <jarred@sencha.com>
    214
  • trunk/WebCore/platform/graphics/filters/FEColorMatrix.cpp

    r73894 r74010  
    6868inline void matrix(double& red, double& green, double& blue, double& alpha, const Vector<float>& values)
    6969{
    70     double r = values[0]  * red + values[1]  * green + values[2]  * blue + values[3]  * alpha;
    71     double g = values[5]  * red + values[6]  * green + values[7]  * blue + values[8]  * alpha;
    72     double b = values[10]  * red + values[11]  * green + values[12] * blue + values[13] * alpha;
    73     double a = values[15] * red + values[16] * green + values[17] * blue + values[18] * alpha;
     70    double r = values[0]  * red + values[1]  * green + values[2]  * blue + values[3]  * alpha + values[4] * 255;
     71    double g = values[5]  * red + values[6]  * green + values[7]  * blue + values[8]  * alpha + values[9] * 255;
     72    double b = values[10]  * red + values[11]  * green + values[12] * blue + values[13] * alpha + values[14] * 255;
     73    double a = values[15] * red + values[16] * green + values[17] * blue + values[18] * alpha + values[19] * 255;
    7474
    7575    red = r;
Note: See TracChangeset for help on using the changeset viewer.