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

Unified Diff: chrome/renderer/render_view.cc

Issue 1989002: The app launcher had a height of zero as it was not getting preferred size up... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 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 | « chrome/common/view_types.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 46482)
+++ chrome/renderer/render_view.cc (working copy)
@@ -3820,12 +3820,12 @@
}
void RenderView::OnEnablePreferredSizeChangedMode() {
- DCHECK(!send_preferred_size_changes_);
+ if (send_preferred_size_changes_)
+ return;
+
send_preferred_size_changes_ = true;
-
- if (ViewType::ShouldAutoResize(view_type_))
- preferred_size_change_timer_.Start(TimeDelta::FromMilliseconds(10), this,
- &RenderView::CheckPreferredSize);
+ preferred_size_change_timer_.Start(TimeDelta::FromMilliseconds(10), this,
Matt Perry 2010/05/05 23:47:38 I remember not liking this polling when it first w
+ &RenderView::CheckPreferredSize);
}
void RenderView::OnDisableScrollbarsForSmallWindows(
« no previous file with comments | « chrome/common/view_types.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698