• zherczeg@webkit.org's avatar
    WebCore: Fix a crash caused by feLigthing::apply() · 61cd574c
    zherczeg@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=39004
    
    Reviewed by Dirk Schulze.
    
    Make FELighting::apply() similar to other filters' applies
    to avoid an assertion fail in putUnmultipliedImageData(),
    when effectDrawingRect has negative location (x or y is less than 0).
    
    Test: svg/filters/feLighting-crash.svg
    
    * svg/graphics/filters/SVGFELighting.cpp:
    (WebCore::FELighting::apply):
    
    LayoutTests: In case of lighting SVG effects, a wider output rectangle
    than the input image size should not cause crash.
    https://bugs.webkit.org/show_bug.cgi?id=39004
    
    Reviewed by Dirk Schulze.
    
    * platform/mac/svg/filters/feLighting-crash-expected.checksum: Added.
    * platform/mac/svg/filters/feLighting-crash-expected.png: Added.
    * platform/mac/svg/filters/feLighting-crash-expected.txt: Added.
    * platform/qt/svg/filters/feLighting-crash-expected.txt: Added.
    * svg/filters/feLighting-crash.svg: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    61cd574c
ChangeLog 1.08 MB