summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 00:35:53 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 00:35:53 +0000
commit45654210820836150b76cb594454fbbc2a0eb144 (patch)
tree3902a3e0c0fe8928d3ea717b951f819a5086100d /webkit/tools/test_shell/webwidget_host.h
parentcd7ffc24055f87da359b52ac02a5fc802343c73d (diff)
downloadchromium_src-45654210820836150b76cb594454fbbc2a0eb144.zip
chromium_src-45654210820836150b76cb594454fbbc2a0eb144.tar.gz
chromium_src-45654210820836150b76cb594454fbbc2a0eb144.tar.bz2
Fix areas not being repainted in the linux test shell
The problem was that we weren't updating the damage rect based on the gdk expose event. I also removed all the optimized scrolling code. We can re-add it later if we think it's worth it. Review URL: http://codereview.chromium.org/10815 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host.h')
-rw-r--r--webkit/tools/test_shell/webwidget_host.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index 583c9bf..3bc2ac8 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -83,6 +83,10 @@ class WebWidgetHost {
static gfx::WindowHandle CreateWindow(gfx::WindowHandle parent, void* host);
void WindowDestroyed();
void Resize(const gfx::Size& size);
+
+ // Allow clients to update the paint rect. For example, if we get a gdk
+ // expose event, we need to update the paint rect.
+ void UpdatePaintRect(const gfx::Rect& rect);
#endif
void TrackMouseLeave(bool enable);