Reviewed by Hyatt.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2006 06:56:13 +0000 (06:56 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2006 06:56:13 +0000 (06:56 +0000)
commit8d5c9fd4551289e26a34b277cacad4383c23fe70
tree986002d167e752db424c8be5a691dd33cfd1d203
parentb9539904428721e50ba4a36c1af6d83ac8ad0a87
    Reviewed by Hyatt.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8760
          crash (hang?) on subtlegradient.com article page

        * manual-tests/first-line-style-crash.html: Added.

        * css/cssstyleselector.cpp:
        (WebCore::CSSStyleSelector::createStyleForElement): Changed to not return the
        shared styleNotYetAvailable if allowSharing is off.
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::getPseudoStyle): In the FIRST_LINE_INHERITED case,
        set the styleType on the style returned from createStyleForElement().
        * rendering/render_style.h:
        (WebCore::RenderStyle::setStyleType): Added. Called from RenderObject::getPseudoStyle().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/css/cssstyleselector.cpp
WebCore/manual-tests/first-line-style-crash.html [new file with mode: 0644]
WebCore/rendering/RenderObject.cpp
WebCore/rendering/render_style.h