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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/ancestor-with-clip-path.html

Issue 2380683006: SPv2: Add support for tracking raster paint invalidations in testing. (Closed)
Patch Set: none Created 4 years, 2 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
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <style> 2 <style>
3 #scroller { 3 #scroller {
4 overflow: scroll; 4 overflow: scroll;
5 height: 300px; 5 height: 300px;
6 width: 300px; 6 width: 300px;
7 background-color: red; 7 background-color: red;
8 } 8 }
9 9
10 #outer { 10 #outer {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 document.getElementById("outer").style.webkitClipPath = "polygon(40px 550px, 432px 302px,409px 237px,46px 156px)"; 68 document.getElementById("outer").style.webkitClipPath = "polygon(40px 550px, 432px 302px,409px 237px,46px 156px)";
69 requestAnimationFrame(function() { 69 requestAnimationFrame(function() {
70 if (window.internals) { 70 if (window.internals) {
71 result += "Has clip path ancestor (should not be using composited sc rolling): "; 71 result += "Has clip path ancestor (should not be using composited sc rolling): ";
72 if (!isUsingCompositedScrolling(JSON.parse(window.internals.layerTre eAsText(document)))) 72 if (!isUsingCompositedScrolling(JSON.parse(window.internals.layerTre eAsText(document))))
73 result += "Pass.\n"; 73 result += "Pass.\n";
74 else 74 else
75 result += "Fail.\n" 75 result += "Fail.\n"
76 } 76 }
77
78 if (window.testRunner) { 77 if (window.testRunner) {
79 window.testRunner.setCustomTextOutput(result); 78 window.testRunner.setCustomTextOutput(result);
80 window.testRunner.notifyDone(); 79 window.testRunner.notifyDone();
81 } 80 }
82 }); 81 });
83 }; 82 };
84 </script> 83 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698