Index: Source/core/frame/LocalFrame.cpp |
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp |
index 7ed8d9ff198221cafefd844dcdc2f2e789412270..837b38ac87116e94034b5d2e352d1f74c51ad0f4 100644 |
--- a/Source/core/frame/LocalFrame.cpp |
+++ b/Source/core/frame/LocalFrame.cpp |
@@ -598,7 +598,10 @@ PassOwnPtr<DragImage> LocalFrame::paintIntoDragImage( |
paintingRect.setWidth(paintingRect.width() * deviceScaleFactor); |
paintingRect.setHeight(paintingRect.height() * deviceScaleFactor); |
- SkPictureBuilder pictureBuilder(paintingRect); |
+ // The content is shifted to origin, to fit within the image bounds - which are the same |
+ // as the picture bounds. |
+ SkRect pictureBounds = SkRect::MakeIWH(paintingRect.width(), paintingRect.height()); |
+ SkPictureBuilder pictureBuilder(pictureBounds); |
{ |
GraphicsContext& paintContext = pictureBuilder.context(); |