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

Side by Side Diff: third_party/WebKit/LayoutTests/images/color-profile-mask-image-svg.html

Issue 2938543003: Remove almost all Javascript calls to setColorProfile (Closed)
Patch Set: Created 3 years, 6 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 <html> 2 <html>
3 <script src="../resources/run-after-layout-and-paint.js"></script> 3 <script src="../resources/run-after-layout-and-paint.js"></script>
4 4
5 <style> 5 <style>
6 img { 6 img {
7 -webkit-mask: url(resources/color-profile-mask-image.svg) top left; 7 -webkit-mask: url(resources/color-profile-mask-image.svg) top left;
8 -webkit-mask-size: 33% 33%; 8 -webkit-mask-size: 33% 33%;
9 -webkit-mask-repeat: space; 9 -webkit-mask-repeat: space;
10 width: 380px; 10 width: 380px;
(...skipping 11 matching lines...) Expand all
22 </defs> 22 </defs>
23 <image xlink:href="resources/red-at-12-oclock-with-color-profile.jpg" width=" 380" height="380" mask="url(#mask)"/> 23 <image xlink:href="resources/red-at-12-oclock-with-color-profile.jpg" width=" 380" height="380" mask="url(#mask)"/>
24 </svg> 24 </svg>
25 25
26 <img src="resources/red-at-12-oclock-with-color-profile.jpg"> 26 <img src="resources/red-at-12-oclock-with-color-profile.jpg">
27 </body> 27 </body>
28 28
29 <script> 29 <script>
30 function load() { 30 function load() {
31 if (window.testRunner) 31 if (window.testRunner)
32 runAfterLayoutAndPaint(changeColorProfile); 32 runAfterLayoutAndPaint(function() { testRunner.notifyDone() });
33 }
34
35 function changeColorProfile() {
36 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100);
37 }
38
39 function done() {
40 setTimeout(function() { testRunner.notifyDone() }, 0);
41 } 33 }
42 34
43 if (window.testRunner) { 35 if (window.testRunner) {
44 testRunner.dumpAsTextWithPixelResults(); 36 testRunner.dumpAsTextWithPixelResults();
45 testRunner.waitUntilDone(); 37 testRunner.waitUntilDone();
46 } 38 }
47 </script> 39 </script>
48 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698