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

Side by Side Diff: LayoutTests/svg/custom/repaint-shadow.svg

Issue 816923002: Switch FontFaceSet#ready from a method to an attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k"> 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k">
3 <style type="text/css"> 3 <style type="text/css">
4 @font-face { 4 @font-face {
5 font-family: "Ahem"; 5 font-family: "Ahem";
6 src: url(../../resources/Ahem.ttf); 6 src: url(../../resources/Ahem.ttf);
7 } 7 }
8 </style> 8 </style>
9 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> 9 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
10 <text x="20" y="60" font-family="Ahem" font-size="50px" style="text-shadow: 200px 200px 5px red">X</text> 10 <text x="20" y="60" font-family="Ahem" font-size="50px" style="text-shadow: 200px 200px 5px red">X</text>
11 <text x="170" y="60" font-family="Ahem" font-size="50px" style="text-shadow: 200px 200px 5px red">X</text> 11 <text x="170" y="60" font-family="Ahem" font-size="50px" style="text-shadow: 200px 200px 5px red">X</text>
12 12
13 <script> 13 <script>
14 function repaintTest() { 14 function repaintTest() {
15 document.getElementsByTagName('text')[1].setAttribute("x", 171); 15 document.getElementsByTagName('text')[1].setAttribute("x", 171);
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 } 18 }
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 document.fonts.ready().then(runRepaintAndPixelTest); 21 document.fonts.ready.then(runRepaintAndPixelTest);
22 </script> 22 </script>
23 </svg> 23 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698