| Index: Source/platform/DragImage.cpp
|
| diff --git a/Source/platform/DragImage.cpp b/Source/platform/DragImage.cpp
|
| index 82319cd5fa7df60e5eba1f51b55cf6f35f30ba9f..6e91bfbb6f48f5bbf3e1c2ae5475c437cb6bf68a 100644
|
| --- a/Source/platform/DragImage.cpp
|
| +++ b/Source/platform/DragImage.cpp
|
| @@ -89,7 +89,7 @@ PassOwnPtr<DragImage> DragImage::create(Image* image, RespectImageOrientationEnu
|
| destRect = destRect.transposedRect();
|
|
|
| SkBitmap skBitmap;
|
| - if (!skBitmap.allocN32Pixels(sizeRespectingOrientation.width(), sizeRespectingOrientation.height()))
|
| + if (!skBitmap.tryAllocN32Pixels(sizeRespectingOrientation.width(), sizeRespectingOrientation.height()))
|
| return nullptr;
|
|
|
| SkCanvas canvas(skBitmap);
|
|
|