| Index: third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html b/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html
|
| index 235c6590f4cc79a75a27f2e5b6100c608743b04f..90225a02a87431289e8a078721b0f912ed7f30ba 100644
|
| --- a/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html
|
| @@ -1,26 +1,22 @@
|
| <!doctype HTML>
|
| <body>
|
| <div style="height: 2000px; width: 2000px;">
|
| -<img id="targetImage">
|
| + <img id="targetImage">
|
| </div>
|
| <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
|
| <script>
|
| window.testIsAsync = true;
|
|
|
| function repaintTest() {
|
| - window.internals.advanceImageAnimation(targetImage);
|
| + if (window.internals)
|
| + internals.advanceImageAnimation(targetImage);
|
| requestAnimationFrame(function() {
|
| finishRepaintTest();
|
| });
|
| }
|
|
|
| -function targetImageOnload() {
|
| - window.internals.startTrackingRepaints(document);
|
| - runRepaintTest();
|
| -}
|
| -
|
| window.onload = function() {
|
| - targetImage.onload = targetImageOnload;
|
| + targetImage.onload = runRepaintTest;
|
| targetImage.src="../../fast/backgrounds/resources/red-green-animated.gif";
|
| }
|
| </script>
|
|
|