[Webkit-unassigned] [Bug 21900] wx port doesn't draw text caret
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 27 14:47:22 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=21900
kevino at theolliviers.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #24688|review? |review+
Flag| |
------- Comment #2 from kevino at theolliviers.com 2008-10-27 14:47 PDT -------
(From update of attachment 24688)
> diff --git a/WebKit/wx/ChangeLog b/WebKit/wx/ChangeLog
> index 3d105b4..1a6e911 100644
> --- a/WebKit/wx/ChangeLog
> +++ b/WebKit/wx/ChangeLog
> @@ -1,3 +1,14 @@
> +2008-10-27 Kevin Watters <kevinwatters at gmail.com>
> +
> + Reviewed by NOBODY (OOPS!).
> +
> + Update the active state as well as the focused state as both need to be true
> + for the caret to be drawn.
> +
> + * WebView.cpp:
> + (wxWebView::OnSetFocus):
> + (wxWebView::OnKillFocus):
> +
> 2008-10-25 Kevin Ollivier <kevino at theolliviers.com>
>
> wx build fix.
> diff --git a/WebKit/wx/WebView.cpp b/WebKit/wx/WebView.cpp
> index 0c4cb66..546518f 100644
> --- a/WebKit/wx/WebView.cpp
> +++ b/WebKit/wx/WebView.cpp
> @@ -564,8 +564,10 @@ void wxWebView::OnSetFocus(wxFocusEvent& event)
> if (m_mainFrame)
> frame = m_mainFrame->GetFrame();
>
> - if (frame)
> + if (frame) {
> + m_impl->page->focusController()->setActive(true);
> frame->selection()->setFocused(true);
> + }
>
> event.Skip();
> }
> @@ -576,9 +578,10 @@ void wxWebView::OnKillFocus(wxFocusEvent& event)
> if (m_mainFrame)
> frame = m_mainFrame->GetFrame();
>
> - if (frame)
> + if (frame) {
> + m_impl->page->focusController()->setActive(false);
> frame->selection()->setFocused(false);
> -
> + }
> event.Skip();
> }
>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list