• zherczeg@webkit.org's avatar
    WebCore: Fix a crash caused by feLigthing::apply() · 61cd574c
    zherczeg@webkit.org authored
    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:
    LayoutTests: In case of lighting SVG effects, a wider output rectangle
    than the input image size should not cause crash.
    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
ChangeLog 1.08 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.