Index: Source/web/tests/DragImageTest.cpp |
diff --git a/Source/web/tests/DragImageTest.cpp b/Source/web/tests/DragImageTest.cpp |
index 4c20e27170054f3a228624b1db8cd6333eead550..46337005e8b6995c8c45379a87c46b216cf9e73b 100644 |
--- a/Source/web/tests/DragImageTest.cpp |
+++ b/Source/web/tests/DragImageTest.cpp |
@@ -63,8 +63,9 @@ public: |
: Image(0) |
, m_size(size) |
{ |
- m_nativeImage = NativeImageSkia::create(); |
- EXPECT_TRUE(m_nativeImage->bitmap().allocN32Pixels(size.width(), size.height())); |
+ SkBitmap bitmap; |
+ EXPECT_TRUE(bitmap.allocN32Pixels(size.width(), size.height())); |
+ m_nativeImage = NativeImageSkia::create(bitmap); |
} |
virtual IntSize size() const OVERRIDE |