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

Unified Diff: LayoutTests/fast/repaint/resources/text-based-repaint.js

Issue 1008043002: [S.P.] Don't draw frames of animated images that are offscreen. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: LayoutTests/fast/repaint/resources/text-based-repaint.js
diff --git a/LayoutTests/fast/repaint/resources/text-based-repaint.js b/LayoutTests/fast/repaint/resources/text-based-repaint.js
index ab46d4ba7d03408a6878b875b0061f01381ff51b..d44c544217d3718a9bae53c7aa623a6cc44c2f31 100644
--- a/LayoutTests/fast/repaint/resources/text-based-repaint.js
+++ b/LayoutTests/fast/repaint/resources/text-based-repaint.js
@@ -4,10 +4,10 @@ window.testIsAsync = false;
window.outputRepaintRects = true;
window.generateMinimumRepaint = false; // See comments about 'Minimum repaint' below.
-function runRepaintTest()
+function runRepaintTest(timeout)
{
if (!window.testRunner || !window.internals) {
- setTimeout(repaintTest, 500);
+ setTimeout(repaintTest, timeout || 500);
return;
}

Powered by Google App Engine
This is Rietveld 408576698