Index: athena/content/web_activity.cc |
diff --git a/athena/content/web_activity.cc b/athena/content/web_activity.cc |
index 795c8c3f7bc0257ab101cb43b6d6f696a3493b03..0d21bb62e0d49c4cc9f20e8149bd82d5dca6bd62 100644 |
--- a/athena/content/web_activity.cc |
+++ b/athena/content/web_activity.cc |
@@ -404,6 +404,17 @@ gfx::ImageSkia WebActivity::GetOverviewModeImage() { |
return overview_mode_image_; |
} |
+void WebActivity::PrepareContentsForOverview() { |
+ // Turn on fast resizing to avoid re-laying out the web contents when |
+ // entering / exiting overview mode. |
+ web_view_->SetFastResize(true); |
+} |
+ |
+void WebActivity::ResetContentsView() { |
+ web_view_->SetFastResize(false); |
+ web_view_->Layout(); |
+} |
+ |
void WebActivity::TitleWasSet(content::NavigationEntry* entry, |
bool explicit_set) { |
ActivityManager::Get()->UpdateActivity(this); |