WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2008 01:17:05 +0000 (01:17 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2008 01:17:05 +0000 (01:17 +0000)
commit2b8211350d5ab2e5c7bc7d1859c0da1f1c8718c7
tree42ac062d761f306c16a8e85f86a90992f85a2c66
parenta677b5b205a01ffda10578b983eaae256710259d
WebCore:

        Reviewed by Mitz.

        - fix http://bugs.webkit.org/show_bug.cgi?id=16723
          tables/mozilla/bugs/bug30418.html test failing due to problems updating dynamic border rules

        Test: fast/table/border-changes.html

        * html/HTMLTableElement.h:
        * html/HTMLTableElement.cpp:
        (WebCore::HTMLTableElement::parseMappedAttribute): Check the border type before and after
        parsing attributes, rather than doing this only for the rules attribute.
        (WebCore::HTMLTableElement::cellBorders): Added.
        (WebCore::HTMLTableElement::getSharedCellDecl): Changed to use cellBorders to factor out the
        rule about what type of borders to use.

LayoutTests:

        Reviewed by Mitz.

        - test for http://bugs.webkit.org/show_bug.cgi?id=16723
          tables/mozilla/bugs/bug30418.html test failing due to problems updating dynamic border rules

        * fast/table/border-changes-expected.txt: Added.
        * fast/table/border-changes.html: Added.
        * fast/table/resources: Added.
        * fast/table/resources/TEMPLATE.html: Added.
        * fast/table/resources/border-changes.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/table/border-changes-expected.txt [new file with mode: 0644]
LayoutTests/fast/table/border-changes.html [new file with mode: 0644]
LayoutTests/fast/table/resources/TEMPLATE.html [new file with mode: 0644]
LayoutTests/fast/table/resources/border-changes.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLTableElement.cpp
WebCore/html/HTMLTableElement.h