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

Side by Side Diff: third_party/WebKit/LayoutTests/images/color-profile-svg-fill-text.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 <!-- There should be no red on this page. --> 5 <!-- There should be no red on this page. -->
6 <body> 6 <body>
7 <svg width="98%" height="400px"> 7 <svg width="98%" height="400px">
8 <pattern id="pattern" patternUnits="userSpaceOnUse" y="20" width="400" height= "120" patternTransform="scale(0.4)"> 8 <pattern id="pattern" patternUnits="userSpaceOnUse" y="20" width="400" height= "120" patternTransform="scale(0.4)">
9 <image onload="top.load()" xlink:href="resources/red-at-12-oclock-with-color -profile.jpg" width="400" height="400"/> 9 <image onload="top.load()" xlink:href="resources/red-at-12-oclock-with-color -profile.jpg" width="400" height="400"/>
10 </pattern> 10 </pattern>
11 <text x="10" y="70" style="fill: url(#pattern); font: 140px Ahem, sans-serif; -webkit-font-smoothing: none;"> 11 <text x="10" y="70" style="fill: url(#pattern); font: 140px Ahem, sans-serif; -webkit-font-smoothing: none;">
12 &#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605 ;&#9605;&#9605;&#9605;&#9605;&#9605; 12 &#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605;&#9605 ;&#9605;&#9605;&#9605;&#9605;&#9605;
13 </text> 13 </text>
14 </svg> 14 </svg>
15 </body> 15 </body>
16 16
17 <script> 17 <script>
18 function load() { 18 function load() {
19 if (window.testRunner) 19 if (window.testRunner)
20 runAfterLayoutAndPaint(changeColorProfile); 20 runAfterLayoutAndPaint(function() { testRunner.notifyDone() });
21 }
22
23 function changeColorProfile() {
24 testRunner.setColorProfile('colorSpin', done);
25 }
26
27 function done() {
28 setTimeout(function() { testRunner.notifyDone() }, 0);
29 } 21 }
30 22
31 if (window.testRunner) { 23 if (window.testRunner) {
32 testRunner.dumpAsTextWithPixelResults(); 24 testRunner.dumpAsTextWithPixelResults();
33 testRunner.waitUntilDone(); 25 testRunner.waitUntilDone();
34 } 26 }
35 </script> 27 </script>
36 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698