LayoutTests:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jul 2007 23:26:48 +0000 (23:26 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jul 2007 23:26:48 +0000 (23:26 +0000)
commit7cf33cf2f0df2f1f76aa2074e01bd2083a41b811
tree265989278877a262aba3cc6dcfd4459e352c2d00
parentc00f728c668b9da1c15f0ac70a873938513a155f
LayoutTests:

        Reviewed by Darin.

        HTTP test for <rdar://problem/5305788>
        REGRESSION: Safari sometimes loads IE-specific stylesheet on www.apaema.org

        Test that order style sheets arrive has no impact to selection of preferred style sheet set.

        * http/tests/local/fail.css: Added.
        * http/tests/local/link-stylesheet-preferred-expected.txt: Added.
        * http/tests/local/link-stylesheet-preferred.html: Added.
        * http/tests/local/slow-css-pass.cgi: Added.

WebCore:

        Reviewed by Darin.

        Fix <rdar://problem/5305788>
        REGRESSION: Safari sometimes loads IE-specific stylesheet on www.apaema.org

        Pick the preferred style sheet set based on document order even if the sheet is still loading. Previously
        the set was chosen based on which stylesheet happened to arrive first. Just fix the problem at hand
        and resist urge to start refactoring this function.

        * dom/Document.cpp:
        (WebCore::Document::recalcStyleSelector):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/local/fail.css [new file with mode: 0644]
LayoutTests/http/tests/local/link-stylesheet-preferred-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/local/link-stylesheet-preferred.html [new file with mode: 0644]
LayoutTests/http/tests/local/slow-css-pass.cgi [new file with mode: 0755]
WebCore/ChangeLog
WebCore/dom/Document.cpp