diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 22:31:44 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 22:31:44 +0000 |
commit | e57d303341aaac9655d73f0022d752f4281f9752 (patch) | |
tree | 7501d0edfea1cdb2bd092fe25b495b18a3899781 /webkit/tools/test_shell | |
parent | 87f85d31c209a76f526ac437462dd0977fe835d6 (diff) | |
download | chromium_src-e57d303341aaac9655d73f0022d752f4281f9752.zip chromium_src-e57d303341aaac9655d73f0022d752f4281f9752.tar.gz chromium_src-e57d303341aaac9655d73f0022d752f4281f9752.tar.bz2 |
linux: don't spuriously repaint test_shell on focus changes
If we let the focus in / out fall through, we do an extra repaint.
If WebKit wants to repaint in response to the focus change it will
let us know.
Review URL: http://codereview.chromium.org/546051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r-- | webkit/tools/test_shell/webwidget_host_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc index 0b1439b..9c8b90b 100644 --- a/webkit/tools/test_shell/webwidget_host_gtk.cc +++ b/webkit/tools/test_shell/webwidget_host_gtk.cc @@ -212,7 +212,7 @@ class WebWidgetHostGtkWidget { // other's focus when running in parallel. if (!TestShell::layout_test_mode()) host->webwidget()->setFocus(true); - return FALSE; + return TRUE; } // Keyboard focus left. @@ -223,7 +223,7 @@ class WebWidgetHostGtkWidget { // other's focus when running in parallel. if (!TestShell::layout_test_mode()) host->webwidget()->setFocus(false); - return FALSE; + return TRUE; } // Mouse button down. |