summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-17 16:52:30 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-17 16:52:30 +0000
commit4714de941de860946a250e8648cd55e22001107c (patch)
treef72c198586f8087428cf2c49bb7e291a386bcea3 /chrome/browser/renderer_host
parent84009d9279734bbc3c7f37555dc3d46b4ec36456 (diff)
downloadchromium_src-4714de941de860946a250e8648cd55e22001107c.zip
chromium_src-4714de941de860946a250e8648cd55e22001107c.tar.gz
chromium_src-4714de941de860946a250e8648cd55e22001107c.tar.bz2
Fixes resizing. (The content will still be scaled a bit until the roundtrip happens.)
Review URL: http://codereview.chromium.org/21415 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9879 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_mac.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index 6dc179f..968f5e0 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -244,6 +244,11 @@ void RenderWidgetHostViewMac::ShutdownHost() {
renderWidgetHostView_->render_widget_host()->ForwardWheelEvent(event);
}
+- (void)setFrame:(NSRect)frameRect {
+ [super setFrame:frameRect];
+ renderWidgetHostView_->render_widget_host()->WasResized();
+}
+
- (void)drawRect:(NSRect)dirtyRect {
DCHECK(renderWidgetHostView_->render_widget_host()->process()->channel());