WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2008 01:11:12 +0000 (01:11 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2008 01:11:12 +0000 (01:11 +0000)
commitdf1619b86972bdbf8859f8cdb3bd48befb09a476
tree8e967c7f75832a1929c13b74f2460f7d8beeaad1
parent00aeb96991eed3f87026f752a9f61abcdcef0a51
WebCore:

        Reviewed by Maciej and Alice.

        - fix <rdar://problem/4404302> Borders where there should be none (canadasmountains.com)

        Test: fast/images/border.html

        * html/HTMLImageElement.cpp:
        (WebCore::HTMLImageElement::parseMappedAttribute): Change the code that handles cases
        where the border value is not a number to use the value "0" for the border width instead
        of not setting the border width and style at all. This matches other browsers, and makes
        more sense.

LayoutTests:

        Reviewed by Maciej and Alice.

        - test for <rdar://problem/4404302> Borders where there should be none (canadasmountains.com)

        * fast/images/border.html: Added.
        * fast/images/resources/TEMPLATE.html: Copied from fast/js/resources/TEMPLATE.html.
        * fast/images/resources/border.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/images/border.html [new file with mode: 0644]
LayoutTests/fast/images/resources/TEMPLATE.html [new file with mode: 0644]
LayoutTests/fast/images/resources/border.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLImageElement.cpp