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

Unified Diff: LayoutTests/fast/repaint/resources/frame-invalidated-by-raf.html

Issue 1246173002: Throttle rendering pipeline for invisible iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add layout tests. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/repaint/resources/frame-invalidated-by-raf.html
diff --git a/LayoutTests/fast/repaint/resources/frame-invalidated-by-raf.html b/LayoutTests/fast/repaint/resources/frame-invalidated-by-raf.html
new file mode 100644
index 0000000000000000000000000000000000000000..5dee1459bbc7eaf96cd626d67d45e6023c9bf1f1
--- /dev/null
+++ b/LayoutTests/fast/repaint/resources/frame-invalidated-by-raf.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<!-- A document which constantly invalidates itself using requestAnimationFrame. -->
+<script>
+var frame = 0;
+function animate()
+{
+ document.body.style.background = (frame++ % 2) ? 'orange' : 'yellow';
+ window.requestAnimationFrame(animate);
+}
+window.addEventListener('load', animate);
+</script>

Powered by Google App Engine
This is Rietveld 408576698