Chromium Code Reviews| Index: app/gfx/canvas_linux.cc |
| =================================================================== |
| --- app/gfx/canvas_linux.cc (revision 35796) |
| +++ app/gfx/canvas_linux.cc (working copy) |
| @@ -206,6 +206,9 @@ |
| const SkColor& color, |
| int x, int y, int w, int h, |
| int flags) { |
| + if (w <= 0 || h <= 0) |
| + return; |
| + |
| cairo_t* cr = beginPlatformPaint(); |
| PangoLayout* layout = pango_cairo_create_layout(cr); |