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

Unified Diff: LayoutTests/fast/repaint/iframe-throttling-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/iframe-throttling-raf.html
diff --git a/LayoutTests/fast/repaint/iframe-throttling-raf.html b/LayoutTests/fast/repaint/iframe-throttling-raf.html
new file mode 100644
index 0000000000000000000000000000000000000000..ee12c0b03e115765bc4d95aa620ec4f65cf7b9e6
--- /dev/null
+++ b/LayoutTests/fast/repaint/iframe-throttling-raf.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<!-- Check that a constantly invalidating out-of-view frame does not cause repaints. -->
+<style>
+iframe
+{
+ transform: translateY(2000px) translateZ(0);
+}
+</style>
+
+<script src="resources/text-based-repaint.js"></script>
+<script src="resources/ensure-no-repaints.js"></script>
+
+<!-- Use sandboxing to allow rendering pipeline throtting. -->
+<iframe src="resources/frame-invalidated-by-raf.html" sandbox="allow-scripts" width="64" height="64"></iframe>

Powered by Google App Engine
This is Rietveld 408576698