summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/Image.cpp')
-rw-r--r--WebCore/platform/graphics/Image.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/Image.cpp b/WebCore/platform/graphics/Image.cpp
index 8263faa..6f2311c 100644
--- a/WebCore/platform/graphics/Image.cpp
+++ b/WebCore/platform/graphics/Image.cpp
@@ -32,9 +32,9 @@
#include "GraphicsContext.h"
#include "IntRect.h"
#include "MIMETypeRegistry.h"
-#include <wtf/StdLibExtras.h>
-
+#include "SharedBuffer.h"
#include <math.h>
+#include <wtf/StdLibExtras.h>
#if PLATFORM(CG)
#include <CoreFoundation/CoreFoundation.h>
@@ -53,6 +53,7 @@ Image::~Image()
Image* Image::nullImage()
{
+ ASSERT(isMainThread());
DEFINE_STATIC_LOCAL(RefPtr<Image>, nullImage, (BitmapImage::create()));;
return nullImage.get();
}