| Index: third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background.html b/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background.html
|
| index fe5509c482cc73176517a1a0bc9fc82ecca993d2..4dccaedee2f1ae8723e38fb5d18a006d894b6150 100644
|
| --- a/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background.html
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-background.html
|
| @@ -1,31 +1,27 @@
|
| <!doctype HTML>
|
| <body>
|
| <div style="height: 2000px; width: 2000px;">
|
| -<div id="targetImage" style="width: 50px; height: 50px">
|
| + <div id="targetImage" style="width: 50px; height: 50px"></div>
|
| + <img id="testTarget" style="visibility: hidden">
|
| </div>
|
| -<img id="testTarget" style="visibility: hidden">
|
| <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
|
| <script>
|
| window.testIsAsync = true;
|
|
|
| function repaintTest() {
|
| - window.internals.advanceImageAnimation(testTarget);
|
| + if (window.internals)
|
| + internals.advanceImageAnimation(testTarget);
|
| requestAnimationFrame(function() {
|
| finishRepaintTest();
|
| });
|
| }
|
|
|
| -function targetImageOnload() {
|
| - window.internals.startTrackingRepaints(document);
|
| - runRepaintTest();
|
| -}
|
| -
|
| onload = function() {
|
| targetImage.style.background = "url(../../fast/backgrounds/resources/red-green-animated.gif)";
|
|
|
| // Use a parallel image element has a hack to detect whether the image has loaded, and therefore
|
| // we'll get a frame.
|
| - testTarget.onload = targetImageOnload;
|
| + testTarget.onload = runRepaintTest;
|
| testTarget.src = "../../fast/backgrounds/resources/red-green-animated.gif";
|
| }
|
| </script>
|
|
|