WebCore:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Sep 2007 20:42:14 +0000 (20:42 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Sep 2007 20:42:14 +0000 (20:42 +0000)
commit3c055e33c932321591fdaee28b8ce3dd592802e3
tree507bcc2f7c02622924cada37d92839c3efa9bf95
parentec4501019fcf72c1d01a899166cfe39cab8cb2fe
WebCore:

        Reviewed by Darin.

        Fix <rdar://problem/5480050>
        Leopard9A551 with Dashcode 112: Dashcode crash when dragging image into canvas.

        If @import stylesheet was modified through CSS DOM style selector would not get updated. This
        could lead to crashes.

        Test: fast/css/import-style-update.html

        * css/CSSStyleSheet.cpp:
        (WebCore::CSSStyleSheet::styleSheetChanged):

LayoutTests:

        Reviewed by Darin.

        Test for <rdar://problem/5480050>
        Leopard9A551 with Dashcode 112: Dashcode crash when dragging image into canvas.

        Non-crashing test case, but it demonstrates the same problem that would crash
        under some circumstances.

        * fast/css/import-style-update-expected.txt: Added.
        * fast/css/import-style-update.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/import-style-update-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/import-style-update.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/CSSStyleSheet.cpp