summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/tab_contents/tab_contents_view_mac.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
index f0ea3e2..281d7d1 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -135,8 +135,11 @@ void TabContentsViewMac::OnTabCrashed() {
}
void TabContentsViewMac::SizeContents(const gfx::Size& size) {
- // TODO(brettw) this is a hack and should be removed. See tab_contents_view.h.
- NOTIMPLEMENTED(); // Leaving the hack unimplemented.
+ // TODO(brettw | japhet) This is a hack and should be removed.
+ // See tab_contents_view.h.
+ gfx::Rect rect(gfx::Point(), size);
+ TabContentsViewCocoa* view = cocoa_view_.get();
+ [view setFrame:[view RectToNSRect:rect]];
}
void TabContentsViewMac::Focus() {