Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: webkit/tools/test_shell/webwidget_host_gtk.cc

Issue 198031: [GTK] Stash new dimensions on resize, so that the backing store can use them (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/webwidget_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webkit/tools/test_shell/webwidget_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698