WebCore:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Sep 2007 14:50:03 +0000 (14:50 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Sep 2007 14:50:03 +0000 (14:50 +0000)
commit8988016344fa92a44edee21a3fdfd06c209f920e
treeba8c332ffd34e0f828d65260a48f56061864dd50
parentbf6d15424d08c41d36e671f00bcac6b6cd3948c0
WebCore:

        Reviewed by Maciej.

        Fix <rdar://problem/5452112>
        REGRESSION: Initially focused textfield on www.mac.com login page has no insertion point, and doesn't accept typed characters

        Use updateLayoutIgnorePendingStylesheets() instead of updateLayout(). We need to have rendering to set input focus.

        Test: fast/forms/focus-style-pending.html

        * dom/Element.cpp:
        (WebCore::Element::focus):

LayoutTests:

        Reviewed by Maciej.

        Test for <rdar://problem/5452112>
        REGRESSION: Initially focused textfield on www.mac.com login page has no insertion point, and doesn't accept typed characters

        * fast/forms/focus-style-pending-expected.txt: Added.
        * fast/forms/focus-style-pending.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/focus-style-pending-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/focus-style-pending.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Element.cpp