Changeset 81880 in webkit


Ignore:
Timestamp:
Mar 24, 2011 11:57:33 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-24 Jon Lee <jonlee@apple.com>

Reviewed by Darin Adler.

WebKit2: Tabbing from the last focused field to a non-webpage element leaves the selection in a weird state
<rdar://problem/8553962>

  • WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::setFocused): When the page loses focus, clear out any selection in the frame
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r81879 r81880  
     12011-03-24  Jon Lee  <jonlee@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKit2: Tabbing from the last focused field to a non-webpage element leaves the selection in a weird state
     6        <rdar://problem/8553962>
     7
     8        * WebProcess/WebPage/WebPage.cpp:
     9        (WebKit::WebPage::setFocused): When the page loses focus, clear out any selection in the frame
     10
    1112011-03-24  Brian Weinstein  <bweinstein@apple.com>
    212
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r81847 r81880  
    11271127void WebPage::setFocused(bool isFocused)
    11281128{
     1129    if (!isFocused)
     1130        m_page->focusController()->focusedOrMainFrame()->selection()->clear();
    11291131    m_page->focusController()->setFocused(isFocused);
    11301132}
Note: See TracChangeset for help on using the changeset viewer.