WebCore:
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Nov 2007 23:48:52 +0000 (23:48 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Nov 2007 23:48:52 +0000 (23:48 +0000)
commitd038f1b59e6b149b65c502716502dd927f9e900e
tree0b732affbe03b61ecd0082572134f1f1450c3ba3
parent5bcae90d2aca550900bd8cd5cb86188d18602c5d
WebCore:

        Reviewed by Hyatt.

        Fix for <rdar://problem/5540855> REGRESSION: Combination of client-
        side image map and <a> tag is not working properly (15522)

        * html/HTMLMapElement.cpp:
        (WebCore::HTMLMapElement::checkDTD): Allow <map> to have both block
        and inline children rather than just block children. This matches
        Firefox.

LayoutTests:

        Reviewed by Hyatt.

        Tests for <rdar://problem/5540855> REGRESSION: Combination of
        client-side image map and <a> tag is not working properly (15522)

        New test:
        * fast/images/image-map-anchor-children.html: Added.
        * fast/images/resources/boston.gif: Added.
        * platform/mac/fast/images/image-map-anchor-children-
        expected.checksum: Added.
        * platform/mac/fast/images/image-map-anchor-children-expected.png:
        Added.
        * platform/mac/fast/images/image-map-anchor-children-expected.txt:
        Added.

        This test was broken and is fixed now! I had to edit the test
        itself because it was written in the html that the two <map>
        examples were failing, but now they succeed.
        * fast/invalid/residual-style.html:
        * platform/mac/fast/invalid/residual-style-expected.checksum:
        * platform/mac/fast/invalid/residual-style-expected.png:
        * platform/mac/fast/invalid/residual-style-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/images/image-map-anchor-children.html [new file with mode: 0644]
LayoutTests/fast/images/resources/boston.gif [new file with mode: 0644]
LayoutTests/fast/invalid/residual-style.html
LayoutTests/platform/mac/fast/images/image-map-anchor-children-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/image-map-anchor-children-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/image-map-anchor-children-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/invalid/residual-style-expected.checksum
LayoutTests/platform/mac/fast/invalid/residual-style-expected.png
LayoutTests/platform/mac/fast/invalid/residual-style-expected.txt
WebCore/ChangeLog
WebCore/html/HTMLMapElement.cpp