Chromium Code Reviews| 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))); |