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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-mutate.js

Issue 2124143004: [compositorworker] stop scheduling rAF in layout tests once promise is resolved (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/virtual/threaded/fast/compositorworker/resources/proxy-mutate.js
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-mutate.js b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-mutate.js
index 01ea707c98393db79eb14c6e82a27b9446b306d0..645f5758396b9012d395dd578168c74bbcc791fc 100644
--- a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-mutate.js
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-mutate.js
@@ -21,7 +21,8 @@ function awaitProxyInit(proxy) {
function check() {
if (proxy.initialized)
resolve(proxy);
- requestAnimationFrame(check);
+ else
+ requestAnimationFrame(check);
}
requestAnimationFrame(check);
});

Powered by Google App Engine
This is Rietveld 408576698