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

Unified Diff: LayoutTests/fast/repaint/iframe-throttling-timer.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-timer.html
diff --git a/LayoutTests/fast/repaint/iframe-throttling-timer.html b/LayoutTests/fast/repaint/iframe-throttling-timer.html
new file mode 100644
index 0000000000000000000000000000000000000000..07e58fa03b139bebeda4789cbe4af9ae01bb7b99
--- /dev/null
+++ b/LayoutTests/fast/repaint/iframe-throttling-timer.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<!-- Check that a constantly invalidating out-of-view frame does not cause repaints. -->
+<style>
+iframe
+{
+ margin-top: 2000px;
+}
+</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-timer.html" sandbox="allow-scripts" width="64" height="64"></iframe>

Powered by Google App Engine
This is Rietveld 408576698