Skip to content
  • hclam@chromium.org's avatar
    [skia] Handle mask box image. · e09f5ef7
    hclam@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=100570
    
    Reviewed by James Robinson.
    
    Source/WebCore:
    
    When drawing an image with source rectangle it should intersect with image rectangle.
    This should be the case for drawing single image and tiling an image.
    
    Test: fast/images/mask-box-image-crash.html
    
    * platform/graphics/skia/ImageSkia.cpp:
    (WebCore::Image::drawPattern):
    (WebCore::BitmapImage::draw):
    (WebCore::BitmapImageSingleFrameSkia::draw):
    
    LayoutTests:
    
    Added a test for -webkit-mask-box-image. Test should complete without crashes.
    Output image should be blank.
    
    * fast/images/mask-box-image-crash-expected.png: Added.
    * fast/images/mask-box-image-crash-expected.txt: Added.
    * fast/images/mask-box-image-crash.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e09f5ef7