Reviewed by Adele Peterson.
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 May 2010 18:26:02 +0000 (18:26 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 May 2010 18:26:02 +0000 (18:26 +0000)
commiteb82d5c0e7f00edca07aa20891c8dbd669510b81
treee51db7383d18c52d406a6148ac0d9117d837ffb9
parent6b528df05ceb7d22d601286bd08ec47718cbec5b
    Reviewed by Adele Peterson.

        https://bugs.webkit.org/show_bug.cgi?id=38546
        Node.focus() fails to move focus from subframe properly

        Test: fast/frames/take-focus-from-iframe.html

        * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::setFocus): Don't clear
        focus if this frame doesn't have it. This can happen if page's and HTMLFrameElement's ideas
        of focused frame get out of sync temporarily.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/frames/take-focus-from-iframe.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/frames/take-focus-from-iframe-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/frames/take-focus-from-iframe-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/frames/take-focus-from-iframe-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLFrameElementBase.cpp