LayoutTests:
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Aug 2007 08:42:38 +0000 (08:42 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Aug 2007 08:42:38 +0000 (08:42 +0000)
commit67ebaac25eb91818d0efc07c012d4a869632aa3f
tree3d453ab360761e7b8f77e3d7ba29242cd382db41
parent000f1d0b57b0da91e437eb436df1bcdf191944e0
LayoutTests:

        Reviewed by Maciej.

        Simple test to ensure we don't crash when creating a pattern

        * fast/canvas/create-pattern-does-not-crash-expected.txt: Added.
        * fast/canvas/create-pattern-does-not-crash.html: Added.

WebCore:

        Reviewed by Maciej.

        http://bugs.webkit.org/show_bug.cgi?id=14189
        <rdar://problem/5319511> REPRODUCIBLE CRASH: Canvas createPattern(canvas, ...) crashes on Windows (14189)

        Ensure that we actually retain the CG pattern correctly.

        Credit to Philip Taylor <excors@gmail.com> for finding the cause of this.

        * html/CanvasPattern.cpp:
        (WebCore::CanvasPattern::~CanvasPattern):
        (WebCore::CanvasPattern::createPattern):
        * html/CanvasPattern.h:
        (WebCore::CanvasPattern::platformImage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/create-pattern-does-not-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/create-pattern-does-not-crash.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/CanvasPattern.cpp
WebCore/html/CanvasPattern.h