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

Unified Diff: chrome/browser/ui/gtk/nine_box.cc

Issue 10483010: Change the visual appearance of panel on GTK per new UI design. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 8 years, 6 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
Index: chrome/browser/ui/gtk/nine_box.cc
diff --git a/chrome/browser/ui/gtk/nine_box.cc b/chrome/browser/ui/gtk/nine_box.cc
index 7bce50447fc76e0483e4ca32c735eaeb7fefabd4..815b350d81a31fa7582b7a350ad78fd906a3f0ec 100644
--- a/chrome/browser/ui/gtk/nine_box.cc
+++ b/chrome/browser/ui/gtk/nine_box.cc
@@ -135,7 +135,9 @@ void NineBox::RenderToWidgetWithOpacity(GtkWidget* dst, double opacity) const {
int y2 = images_[6] ? dst_height - gdk_pixbuf_get_height(
images_[6]->ToGdkPixbuf()) : y1;
// Paint nothing if there's not enough room.
- if (x2 < x1 || y2 < y1)
+ // Note that we still want to do the painting if there's room in only one
jennb 2012/06/04 22:17:52 Are you sure this won't mess up non-panel uses of
jianli 2012/06/05 18:48:30 This change is not needed any more since we switch
+ // dimension, like minimized panel consisting of 4-pixel lines.
+ if (x2 < x1 && y2 < y1)
return;
cairo_t* cr = gdk_cairo_create(GDK_DRAWABLE(gtk_widget_get_window(dst)));

Powered by Google App Engine
This is Rietveld 408576698