LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 29 Jul 2006 15:06:04 +0000 (15:06 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 29 Jul 2006 15:06:04 +0000 (15:06 +0000)
commit759f2292c6450047026f443176769b611d18b95e
tree77508875ceb09c4e729d73b70569c4fa66fc2c3b
parent37e519005f2e6c8a703732c5a2f6c95ad7de2b36
LayoutTests:

        Reviewed by Darin.

        Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8587 / <rdar://problem/4631844>
        REGRESSION: {display:list-item} items outside an ol or ul element don't number correctly

        * fast/lists/ordered-list-with-no-ol-tag-expected.checksum: Added.
        * fast/lists/ordered-list-with-no-ol-tag-expected.png: Added.
        * fast/lists/ordered-list-with-no-ol-tag-expected.txt: Added.
        * fast/lists/ordered-list-with-no-ol-tag.html: Added.

WebCore:

        Reviewed by Darin.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8587 / <rdar://problem/4631844>
        REGRESSION: {display:list-item} items outside an ol or ul element don't number correctly

        * rendering/RenderListItem.cpp:
        (WebCore::enclosingList): If no real list element is found, use parent instead.
        (WebCore::previousListItem): Check list elements to see if they are list items -- the
        old code assumed that a list would never be a list item but this is entirely possible
        with CSS and especially with the new rule that means any DOM element could act as a list.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/lists/ordered-list-with-no-ol-tag-expected.checksum [new file with mode: 0644]
LayoutTests/fast/lists/ordered-list-with-no-ol-tag-expected.png [new file with mode: 0644]
LayoutTests/fast/lists/ordered-list-with-no-ol-tag-expected.txt [new file with mode: 0644]
LayoutTests/fast/lists/ordered-list-with-no-ol-tag.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderListItem.cpp