зеркало из https://github.com/mozilla/gecko-dev.git
Bug 411852 - Glitch in an aPNG image rendering and tab thumbnail. r=stuart, a1.9=beltzner
This commit is contained in:
Родитель
69c1fd7d24
Коммит
5181fa825d
|
@ -185,7 +185,7 @@ void nsPNGDecoder::EndImageFrame()
|
||||||
// Tell the image renderer that the frame is complete
|
// Tell the image renderer that the frame is complete
|
||||||
PRInt32 width, height;
|
PRInt32 width, height;
|
||||||
mFrame->GetWidth(&width);
|
mFrame->GetWidth(&width);
|
||||||
mFrame->GetWidth(&height);
|
mFrame->GetHeight(&height);
|
||||||
|
|
||||||
nsIntRect r(0, 0, width, height);
|
nsIntRect r(0, 0, width, height);
|
||||||
nsCOMPtr<nsIImage> img(do_GetInterface(mFrame));
|
nsCOMPtr<nsIImage> img(do_GetInterface(mFrame));
|
||||||
|
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 3.5 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 606 B |
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html class="reftest-wait">
|
||||||
|
<head>
|
||||||
|
<title>Delayed image reftest wrapper</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<img id="image1">
|
||||||
|
<script>
|
||||||
|
// This loads a externally specified image, waits 100ms, and then triggers the
|
||||||
|
// reftest snapshot. This allows the animation on the page to complete.
|
||||||
|
//
|
||||||
|
// Use as "delaytest.html?animation.png"
|
||||||
|
//
|
||||||
|
function startTimer() {
|
||||||
|
const delay = 100;
|
||||||
|
setTimeout("document.documentElement.className = '';", delay);
|
||||||
|
}
|
||||||
|
var imgURL = document.location.search.substr(1);
|
||||||
|
var img = document.images[0];
|
||||||
|
img.src = imgURL;
|
||||||
|
img.onload = startTimer;
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,5 @@
|
||||||
|
# APNG tests
|
||||||
|
#
|
||||||
|
# delaytest.html delays the reftest snapshot to allow time for the
|
||||||
|
# animation to complete.
|
||||||
|
== delaytest.html?bug411852-1.png bug411852-1-ref.png
|
|
@ -22,6 +22,9 @@ include pngsuite-zlib/reftest.list
|
||||||
# JPEG tests
|
# JPEG tests
|
||||||
include jpeg/reftest.list
|
include jpeg/reftest.list
|
||||||
|
|
||||||
|
# APNG tests
|
||||||
|
include apng/reftest.list
|
||||||
|
|
||||||
# Generic image tests
|
# Generic image tests
|
||||||
include generic/reftest.list
|
include generic/reftest.list
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче