WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 20:59:00 +0000 (20:59 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 20:59:00 +0000 (20:59 +0000)
commit2eb8941c572b44d0ffb060ce4e0e2a155b14e6d6
tree2830f5989312c76c9df1f4fcf981f1bc0006280c
parent6611938ba37cbf69e181d0f9983b6c8ef3415159
WebCore:

        Reviewed by Dave Hyatt.

        - fix http://bugs.webkit.org/show_bug.cgi?id=15887
          REGRESSION (r27576): Crash in RenderStyle::affectedByHoverRules clicking link on Digg

        Test: fast/css/display-none-inline-style-change-crash.html

        * dom/Element.cpp:
        (WebCore::Element::recalcStyle): Fixed the crash by null-checking
        the current style and removed other checks that are not strictly
        necessary.

LayoutTests:

        Reviewed by Dave Hyatt.

        - test for http://bugs.webkit.org/show_bug.cgi?id=15887
          REGRESSION (r27576): Crash in RenderStyle::affectedByHoverRules clicking link on Digg

        * fast/css/display-none-inline-style-change-crash-expected.txt: Added.
        * fast/css/display-none-inline-style-change-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/display-none-inline-style-change-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/display-none-inline-style-change-crash.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Element.cpp