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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html

Issue 2578343002: Support compositing for active animations in SPv2. (Closed)
Patch Set: setNeedsPaintPropertyUpdate on PaintLayer::styleDidChange. Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CompositorAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html b/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html
index ebf1c51e89345b4717f26adf19cfcd0e3fc7bab1..69ddecf182586ac73a49226bc4f285ffb0d2cba0 100644
--- a/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/animations/composited-animation-style-update.html
@@ -30,12 +30,16 @@ var animation = target.animate([
iterations: Infinity,
});
-testRunner.waitUntilDone();
+if (window.testRunner)
+ testRunner.waitUntilDone();
requestAnimationFrame(function() {
requestAnimationFrame(function() {
- var composited = internals.isCompositedAnimation(animation);
- text.textContent = `Animation ${composited ? 'is' : 'is not'} running on the compositor.`;
- testRunner.notifyDone();
+ if (window.internals) {
+ var composited = internals.isCompositedAnimation(animation);
+ text.textContent = `Animation ${composited ? 'is' : 'is not'} running on the compositor.`;
+ }
+ if (window.testRunner)
+ testRunner.notifyDone();
});
});
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CompositorAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698