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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-offscreen.html

Issue 2783133002: Implement Image::maybeAnimated for SVGImage (Closed)
Patch Set: Fix typo Created 3 years, 8 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 <script src="../resources/text-based-repaint.js"></script>
3 <script>
4 window.testIsAsync = true;
5
6 // Disable under-invalidation checking because the "under-invalidation" of
7 // offscreen SVG animation is intentional.
8 if (window.internals)
9 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false;
10
11 function repaintTest() {
12 if (window.internals)
13 internals.advanceImageAnimation(targetImage);
14 requestAnimationFrame(function() {
15 finishRepaintTest();
16 });
17 }
18
19 function targetImageOnload() {
20 // Scroll targetImage offscreen.
21 window.scrollTo(0, 1000);
22 runRepaintTest();
23 }
24
25 onload = function() {
26 targetImage.onload = targetImageOnload;
27 targetImage.src = "../../../svg/as-image/resources/animated-rect-fixed-size- 2.svg";
28 }
29 </script>
30 <div style="height: 2000px; width: 2000px;">
31 <img id="targetImage">
32 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698