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

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

Issue 2783133002: Implement Image::maybeAnimated for SVGImage (Closed)
Patch Set: Fix typo Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html
new file mode 100644
index 0000000000000000000000000000000000000000..cf74fdb280537d09189212f915b33337f7986a21
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/animated-svg-as-image-transformed-offscreen.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<script src="../resources/text-based-repaint.js"></script>
+<script>
+window.testIsAsync = true;
+
+// Disable under-invalidation checking because the "under-invalidation" of
+// offscreen SVG animation is intentional.
+if (window.internals)
+ internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false;
+
+function repaintTest() {
+ if (window.internals)
+ internals.advanceImageAnimation(targetImage);
+ requestAnimationFrame(function() {
+ finishRepaintTest();
+ });
+}
+
+function targetImageOnload() {
+ targetDiv.style.transform = "translateY(-1000px)";
+ runRepaintTest();
+}
+
+window.onload = function() {
+ targetImage.onload = targetImageOnload;
+ targetImage.src = "../../../svg/as-image/resources/animated-rect-fixed-size-2.svg";
+}
+</script>
+<div id="targetDiv" style="height: 2000px; width: 2000px; will-change: transform">
+ <img id="targetImage">
+</div>

Powered by Google App Engine
This is Rietveld 408576698