Changeset 74010 in webkit
- Timestamp:
- Dec 14, 2010 3:02:56 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r74002 r74010 1 2010-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 1 13 2010-12-13 Dan Bernstein <mitz@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r74009 r74010 1 2010-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 1 13 2010-12-14 Jarred Nicholls <jarred@sencha.com> 2 14 -
trunk/WebCore/platform/graphics/filters/FEColorMatrix.cpp
r73894 r74010 68 68 inline void matrix(double& red, double& green, double& blue, double& alpha, const Vector<float>& values) 69 69 { 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; 74 74 75 75 red = r;
Note: See TracChangeset
for help on using the changeset viewer.