summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host_gtk.cc')
-rw-r--r--webkit/tools/test_shell/webwidget_host_gtk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc
index 77981e1..b471e6d 100644
--- a/webkit/tools/test_shell/webwidget_host_gtk.cc
+++ b/webkit/tools/test_shell/webwidget_host_gtk.cc
@@ -323,13 +323,13 @@ WebWidgetHost::~WebWidgetHost() {
void WebWidgetHost::Resize(const gfx::Size &newsize) {
// The pixel buffer backing us is now the wrong size
canvas_.reset();
-
+ logical_size_ = newsize;
webwidget_->resize(newsize);
}
void WebWidgetHost::Paint() {
- int width = view_->allocation.width;
- int height = view_->allocation.height;
+ int width = logical_size_.width();
+ int height = logical_size_.height();
gfx::Rect client_rect(width, height);
// Allocate a canvas if necessary