Changeset 87680 in webkit


Ignore:
Timestamp:
May 30, 2011 1:30:17 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-30 Ryan Sleevi <rsleevi@chromium.org>

Reviewed by Darin Adler.

FEConvolveMatrix::getPixelValue() fails to properly check if y is within bounds, causing it to fail to correctly apply the kernel and edge mode to the first targetY pixels
https://bugs.webkit.org/show_bug.cgi?id=61603

  • platform/mac/svg/filters/feConvolveFilter-y-bounds-expected.png: Added.
  • platform/mac/svg/filters/feConvolveFilter-y-bounds-expected.txt: Added.
  • svg/filters/feConvolveFilter-y-bounds.svg: Added.

2011-05-30 Ryan Sleevi <rsleevi@chromium.org>

Reviewed by Darin Adler.

FEConvolveMatrix::getPixelValue() fails to properly check if y is within bounds, causing it to fail to correctly apply the kernel and edge mode to the first targetY pixels
https://bugs.webkit.org/show_bug.cgi?id=61603

Test: svg/filters/feConvolveFilter-y-bounds.svg

  • platform/graphics/filters/FEConvolveMatrix.cpp: (WebCore::FEConvolveMatrix::getPixelValue):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87678 r87680  
     12011-05-30  Ryan Sleevi  <rsleevi@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        FEConvolveMatrix::getPixelValue() fails to properly check if y is within bounds, causing it to fail to correctly apply the kernel and edge mode to the first targetY pixels
     6        https://bugs.webkit.org/show_bug.cgi?id=61603
     7
     8        * platform/mac/svg/filters/feConvolveFilter-y-bounds-expected.png: Added.
     9        * platform/mac/svg/filters/feConvolveFilter-y-bounds-expected.txt: Added.
     10        * svg/filters/feConvolveFilter-y-bounds.svg: Added.
     11
    1122011-05-30  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r87679 r87680  
     12011-05-30  Ryan Sleevi  <rsleevi@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        FEConvolveMatrix::getPixelValue() fails to properly check if y is within bounds, causing it to fail to correctly apply the kernel and edge mode to the first targetY pixels
     6        https://bugs.webkit.org/show_bug.cgi?id=61603
     7
     8        Test: svg/filters/feConvolveFilter-y-bounds.svg
     9
     10        * platform/graphics/filters/FEConvolveMatrix.cpp:
     11        (WebCore::FEConvolveMatrix::getPixelValue):
     12
    1132011-05-30  Nate Chapin  <japhet@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp

    r86931 r87680  
    291291ALWAYS_INLINE int FEConvolveMatrix::getPixelValue(PaintingData& paintingData, int x, int y)
    292292{
    293     if (x >= 0 && x < paintingData.width && x >= 0 && y < paintingData.height)
     293    if (x >= 0 && x < paintingData.width && y >= 0 && y < paintingData.height)
    294294        return (y * paintingData.width + x) << 2;
    295295
Note: See TracChangeset for help on using the changeset viewer.