| Index: webkit/tools/test_shell/webwidget_host_gtk.cc
|
| diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc
|
| index 77981e11320f5d68bd6c462bdba24ab09b15d183..b471e6d80128de80f607521d7b1d295c622c8dca 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
|
|
|