summaryrefslogtreecommitdiff
path: root/chromium/ui/wm/core/image_grid.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-08-14 11:38:45 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-08-14 17:16:47 +0000
commit3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859 (patch)
tree43cc572ba067417c7341db81f71ae7cc6e0fcc3e /chromium/ui/wm/core/image_grid.cc
parentf61ab1ac7f855cd281809255c0aedbb1895e1823 (diff)
downloadqtwebengine-chromium-3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859.tar.gz
BASELINE: Update chromium to 45.0.2454.40
Change-Id: Id2121d9f11a8fc633677236c65a3e41feef589e4 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/ui/wm/core/image_grid.cc')
-rw-r--r--chromium/ui/wm/core/image_grid.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/ui/wm/core/image_grid.cc b/chromium/ui/wm/core/image_grid.cc
index c849454412a..61548422bd8 100644
--- a/chromium/ui/wm/core/image_grid.cc
+++ b/chromium/ui/wm/core/image_grid.cc
@@ -268,7 +268,8 @@ void ImageGrid::ImagePainter::SetClipRect(const gfx::Rect& clip_rect,
}
void ImageGrid::ImagePainter::OnPaintLayer(const ui::PaintContext& context) {
- ui::PaintRecorder recorder(context);
+ gfx::Size bounding_size(clip_rect_.right(), clip_rect_.bottom());
+ ui::PaintRecorder recorder(context, bounding_size);
if (!clip_rect_.IsEmpty())
recorder.canvas()->ClipRect(clip_rect_);
recorder.canvas()->DrawImageInt(image_, 0, 0);