Changeset 47211 in webkit


Ignore:
Timestamp:
Aug 13, 2009, 10:52:26 AM (16 years ago)
Author:
eric@webkit.org
Message:

2009-08-13 Dirk Schulze <krit@webkit.org>

Reviewed by Eric Seidel.

[CAIRO] getImageData fails on a given rect bigger than the image rect

The destination image and the source image was mixed up on creating the
imageData.

This is just a clean up and doesn't affect the current behavior. It's not
possible to test this failure in a LayoutTest. Only canvas uses getImageData
at the moment and returns before calling getImageData, if the image rect does
not contain the requested rect.

  • platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::getImageData):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r47208 r47211  
     12009-08-13  Dirk Schulze  <krit@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [CAIRO] getImageData fails on a given rect bigger than the image rect
     6
     7        The destination image and the source image was mixed up on creating the
     8        imageData.
     9
     10        This is just a clean up and doesn't affect the current behavior. It's not
     11        possible to test this failure in a LayoutTest. Only canvas uses getImageData
     12        at the moment and returns before calling getImageData, if the image rect does
     13        not contain the requested rect.
     14
     15        * platform/graphics/cairo/ImageBufferCairo.cpp:
     16        (WebCore::getImageData):
     17
    1182009-08-13  Maxime Simon  <simon.maxime@gmail.com>
    219
  • trunk/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp

    r47099 r47211  
    149149
    150150    if (rect.x() < 0 || rect.y() < 0 || (rect.x() + rect.width()) > size.width() || (rect.y() + rect.height()) > size.height())
    151         memset(dataSrc, 0, result->data()->length());
     151        memset(dataDst, 0, result->data()->length());
    152152
    153153    int originx = rect.x();
Note: See TracChangeset for help on using the changeset viewer.