Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/LayoutTests/paint/images/animated-gif-last-frame-crash.html

Issue 2262493003: Prevent synchronous layout while painting the last frame of a gif (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <title>Skipping up to the last frame of an animated gif shouldn't crash.</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <img id="image" src="resources/three_frame_100ms.gif">
6 <script>
7 async_test(function(test) {
8 image.onload = function() {
9 setTimeout(function() {
10 var start = performance.now();
11 while (true) {
12 // Block the main thread for 300ms.
13 if (performance.now() - start >= 300)
14 break;
15 }
16 // Painting will force the gif to advance to the last frame.
17 requestAnimationFrame(function() {
18 test.done();
19 });
20 }, 30);
21 }
22 });
23 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/SlowTests ('k') | third_party/WebKit/LayoutTests/paint/images/resources/three_frame_100ms.gif » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698