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

Side by Side 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 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CompositorAnimations.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 div { 3 div {
4 position: absolute; 4 position: absolute;
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 } 7 }
8 8
9 #expectation { 9 #expectation {
10 font-size: 50px; 10 font-size: 50px;
(...skipping 12 matching lines...) Expand all
23 <script> 23 <script>
24 target.style.fontSize = "50px"; 24 target.style.fontSize = "50px";
25 var animation = target.animate([ 25 var animation = target.animate([
26 {transform: "translate(1em, 1em)"}, 26 {transform: "translate(1em, 1em)"},
27 {transform: "translate(1em, 1em)"}, 27 {transform: "translate(1em, 1em)"},
28 ], { 28 ], {
29 duration: 1e10, 29 duration: 1e10,
30 iterations: Infinity, 30 iterations: Infinity,
31 }); 31 });
32 32
33 testRunner.waitUntilDone(); 33 if (window.testRunner)
34 testRunner.waitUntilDone();
34 requestAnimationFrame(function() { 35 requestAnimationFrame(function() {
35 requestAnimationFrame(function() { 36 requestAnimationFrame(function() {
36 var composited = internals.isCompositedAnimation(animation); 37 if (window.internals) {
37 text.textContent = `Animation ${composited ? 'is' : 'is not'} running on the compositor.`; 38 var composited = internals.isCompositedAnimation(animation);
38 testRunner.notifyDone(); 39 text.textContent = `Animation ${composited ? 'is' : 'is not'} running on t he compositor.`;
40 }
41 if (window.testRunner)
42 testRunner.notifyDone();
39 }); 43 });
40 }); 44 });
41 </script> 45 </script>
OLDNEW
« 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