| Index: ui/views/controls/table/table_view_views.cc
|
| diff --git a/ui/views/controls/table/table_view_views.cc b/ui/views/controls/table/table_view_views.cc
|
| index bb531132841a4dac34975ad2d6cfa496dded7423..b9139b80c7a9d6c313e0d05ca821338bfb4c1f21 100644
|
| --- a/ui/views/controls/table/table_view_views.cc
|
| +++ b/ui/views/controls/table/table_view_views.cc
|
| @@ -9,6 +9,7 @@
|
| #include "ui/base/models/table_model.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "ui/gfx/image/image_skia.h"
|
| +#include "ui/gfx/rect_conversions.h"
|
| #include "ui/gfx/skia_util.h"
|
| #include "ui/views/controls/scroll_view.h"
|
| #include "ui/views/controls/table/table_view_observer.h"
|
| @@ -220,7 +221,9 @@ void TableView::OnPaint(gfx::Canvas* canvas) {
|
| {
|
| SkRect sk_clip_rect;
|
| if (canvas->sk_canvas()->getClipBounds(&sk_clip_rect)) {
|
| - gfx::Rect clip_rect = gfx::SkRectToRect(sk_clip_rect);
|
| + // Pixels partially inside the clip rect should be included.
|
| + gfx::Rect clip_rect = gfx::ToEnclosingRect(
|
| + gfx::SkRectToRectF(sk_clip_rect));
|
| min_y = clip_rect.y();
|
| max_y = clip_rect.bottom();
|
| } else {
|
|
|