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

Unified Diff: chrome/browser/gtk/tab_strip_gtk.cc

Issue 53033: Don't try to paint tabs if there are no tabs to paint. (Closed)
Patch Set: move Created 11 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tab_strip_gtk.cc
diff --git a/chrome/browser/gtk/tab_strip_gtk.cc b/chrome/browser/gtk/tab_strip_gtk.cc
index 2e7b4fc0a4f1e4ba1afeac87039fe2a92151ca90..4ea7773657e539e731262e29a2138916eb6dd6b0 100644
--- a/chrome/browser/gtk/tab_strip_gtk.cc
+++ b/chrome/browser/gtk/tab_strip_gtk.cc
@@ -426,6 +426,9 @@ gboolean TabStripGtk::OnExpose(GtkWidget* widget, GdkEventExpose* e,
tabstrip->tabstrip_.get()->allocation.width,
tabstrip->tabstrip_.get()->allocation.height);
+ if (model->count() == 0)
+ return TRUE;
+
for (int i = 0; i < model->count(); i++) {
if (i != selected) {
tabstrip->PaintTab(i, false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698