summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r--Source/WebCore/platform/graphics/android/ImageSourceAndroid.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/ImageSourceAndroid.cpp b/Source/WebCore/platform/graphics/android/ImageSourceAndroid.cpp
index 65b2314..5a35dd4 100644
--- a/Source/WebCore/platform/graphics/android/ImageSourceAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/ImageSourceAndroid.cpp
@@ -264,9 +264,8 @@ void ImageSource::setData(SharedBuffer* data, bool allDataReceived)
#ifdef ANDROID_ANIMATED_GIF
// First, check to see if this is an animated GIF
- const Vector<char>& buffer = data->buffer();
- const char* contents = buffer.data();
- if (buffer.size() > 3 && strncmp(contents, "GIF8", 4) == 0
+ const char* contents = data->data();
+ if (data->size() > 3 && strncmp(contents, "GIF8", 4) == 0
&& should_use_animated_gif(origW, origH)
&& !disabledAnimatedGif) {
// This means we are looking at a GIF, so create special
@@ -499,4 +498,9 @@ bool ImageSource::getHotSpot(IntPoint&) const
return false;
}
+size_t ImageSource::bytesDecodedToDetermineProperties() const
+{
+ return 0;
+}
+
}