Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
index 76e1cc10201f0be6a03d2bffe538221902676d09..a053a6e6815b28f591fb8fec79e38203f66c4c93 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -50,6 +50,7 @@ |
#include "ui/compositor/layer.h" |
#include "ui/gfx/canvas.h" |
#include "ui/gfx/display.h" |
+#include "ui/gfx/rect_conversions.h" |
#include "ui/gfx/screen.h" |
#include "ui/gfx/skia_util.h" |
@@ -601,7 +602,7 @@ void RenderWidgetHostViewAura::DidUpdateBackingStore( |
if (paint_canvas_) { |
SkRect sk_clip_rect; |
if (paint_canvas_->sk_canvas()->getClipBounds(&sk_clip_rect)) |
- clip_rect = gfx::SkRectToRect(sk_clip_rect); |
+ clip_rect = gfx::ToEnclosingRect(gfx::SkRectToRectF(sk_clip_rect)); |
} |
if (!scroll_rect.IsEmpty()) |