diff options
author | kwm <kwm@FreeBSD.org> | 2011-03-12 21:01:09 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2011-03-12 21:01:09 +0800 |
commit | 669b631585061cb9f120a3aa2e0a091a97a25d4d (patch) | |
tree | f050ee09e54342efbff882192b5ffe34414bda0d /www | |
parent | cfb1e44cb84fbb035a1fdfe6944cf9a7b154d3ef (diff) | |
download | freebsd-ports-gnome-669b631585061cb9f120a3aa2e0a091a97a25d4d.tar.gz freebsd-ports-gnome-669b631585061cb9f120a3aa2e0a091a97a25d4d.tar.zst freebsd-ports-gnome-669b631585061cb9f120a3aa2e0a091a97a25d4d.zip |
Fix a bug where animated GIF's would blink.
Submitted by: Michal Varga varga.michal@gmail.com
Obtained from: http://gitorious.org/webkitgtk
Diffstat (limited to 'www')
-rw-r--r-- | www/webkit-gtk2/Makefile | 1 | ||||
-rw-r--r-- | www/webkit-gtk2/files/patch-gif | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/www/webkit-gtk2/Makefile b/www/webkit-gtk2/Makefile index 5bb9caaa0648..b0ef2e9f4a9a 100644 --- a/www/webkit-gtk2/Makefile +++ b/www/webkit-gtk2/Makefile @@ -8,6 +8,7 @@ PORTNAME= webkit PORTVERSION= 1.2.7 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://webkitgtk.org/ PKGNAMESUFFIX= -gtk2 diff --git a/www/webkit-gtk2/files/patch-gif b/www/webkit-gtk2/files/patch-gif new file mode 100644 index 000000000000..64dce7c117fb --- /dev/null +++ b/www/webkit-gtk2/files/patch-gif @@ -0,0 +1,36 @@ +From bd6bf8e203cabe7073d4880c64a1ab86ebc1264b Mon Sep 17 00:00:00 2001 +From: Gustavo Noronha Silva <gns@gnome.org> +Date: Tue, 8 Mar 2011 09:42:13 -0300 +Subject: [PATCH] Fix bad merge that left trailing semicolons on a couple if statements + +This was causing gifs to blink instead of animating. For more details +look here: https://bugs.webkit.org/show_bug.cgi?id=55830 +--- + .../image-decoders/gif/GIFImageDecoder.cpp | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp b/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp +index dc288fd..3bb2340 100644 +--- WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp ++++ WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp +@@ -343,7 +343,7 @@ bool GIFImageDecoder::initFrameBuffer(unsigned frameIndex) + + if ((prevMethod == RGBA32Buffer::DisposeNotSpecified) || (prevMethod == RGBA32Buffer::DisposeKeep)) { + // Preserve the last frame as the starting state for this frame. +- if (!buffer->copyBitmapData(*prevBuffer)); ++ if (!buffer->copyBitmapData(*prevBuffer)) + return setFailed(); + } else { + // We want to clear the previous frame to transparent, without +@@ -357,7 +357,7 @@ bool GIFImageDecoder::initFrameBuffer(unsigned frameIndex) + return setFailed(); + } else { + // Copy the whole previous buffer, then clear just its frame. +- if (!buffer->copyBitmapData(*prevBuffer)); ++ if (!buffer->copyBitmapData(*prevBuffer)) + return setFailed(); + for (int y = prevRect.y(); y < prevRect.bottom(); ++y) { + for (int x = prevRect.x(); x < prevRect.right(); ++x) +-- +1.6.1 + |