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

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

Issue 182007: gtk: Remove unnecessary gtk_widget_queue_draws from the tabstrip code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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/tabs/tab_strip_gtk.cc
===================================================================
--- chrome/browser/gtk/tabs/tab_strip_gtk.cc (revision 24695)
+++ chrome/browser/gtk/tabs/tab_strip_gtk.cc (working copy)
@@ -773,7 +773,6 @@
}
LayoutNewTabButton(static_cast<double>(tab_right), current_unselected_width_);
- gtk_widget_queue_draw(tabstrip_.get());
}
void TabStripGtk::SchedulePaint() {
@@ -981,11 +980,8 @@
// We have "tiny tabs" if the tabs are so tiny that the unselected ones are
// a different size to the selected ones.
bool tiny_tabs = current_unselected_width_ != current_selected_width_;
- if (!IsAnimating() && (!resize_layout_scheduled_ || tiny_tabs)) {
+ if (!IsAnimating() && (!resize_layout_scheduled_ || tiny_tabs))
Layout();
- } else {
- gtk_widget_queue_draw(tabstrip_.get());
- }
}
}
@@ -1697,7 +1693,6 @@
tab_x = end_of_tab + GetTabHOffset(i + 1);
}
LayoutNewTabButton(tab_x, unselected_width);
- gtk_widget_queue_draw(tabstrip_.get());
}
void TabStripGtk::StartInsertTabAnimation(int index) {
« 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