Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <svg id="svg-root" width="100%" height="100%" | 1 <svg id="svg-root" width="100%" height="100%" |
| 2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" | 2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| 3 xmlns:xlink="http://www.w3.org/1999/xlink"> | 3 xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 <!--======================================================================--> | 4 <!--======================================================================--> |
| 5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> | 5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> |
| 6 <!--= Institute of Technology, European Research Consortium for =--> | 6 <!--= Institute of Technology, European Research Consortium for =--> |
| 7 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> | 7 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 8 <!--= All Rights Reserved. =--> | 8 <!--= All Rights Reserved. =--> |
| 9 <!--= See http://www.w3.org/Consortium/Legal/. =--> | 9 <!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 10 <!--======================================================================--> | 10 <!--======================================================================--> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 <g transform="translate(220 160)"> | 47 <g transform="translate(220 160)"> |
| 48 <g id="reference"> | 48 <g id="reference"> |
| 49 <circle r="40" fill="red" transform="translate(20 20) scale(2 1)"/> | 49 <circle r="40" fill="red" transform="translate(20 20) scale(2 1)"/> |
| 50 </g> | 50 </g> |
| 51 | 51 |
| 52 <g id="g" transform="translate(20 20)"> | 52 <g id="g" transform="translate(20 20)"> |
| 53 <circle id="c" r="40" fill="blue"/> | 53 <circle id="c" r="40" fill="blue"/> |
| 54 </g> | 54 </g> |
| 55 </g> | 55 </g> |
| 56 | 56 |
| 57 <script xlink:href="../../resources/run-after-layout-and-paint.js"></script> | |
| 57 <script type="text/ecmascript"><![CDATA[ | 58 <script type="text/ecmascript"><![CDATA[ |
| 58 var passed = false; | 59 if (window.testRunner) |
| 59 | 60 testRunner.waitUntilDone(); |
|
Xianzhu
2016/11/30 17:08:54
Nit: The above two lines can be omitted when we ha
f(malita)
2016/11/30 18:08:40
Done.
| |
| 60 try | 61 |
| 61 { | 62 runAfterLayoutAndPaint(function() { |
| 62 var g = document.getElementById("g"); | 63 var passed = false; |
| 63 var c = document.getElementById("c"); | 64 |
| 64 var tfm = g.transform.baseVal.getItem(0); | 65 try |
| 65 var mtx = tfm.matrix; | |
| 66 mtx.a = 2; | |
| 67 if(tfm.type == SVGTransform.SVG_TRANSFORM_MATRIX) | |
| 68 { | 66 { |
| 69 passed = true; | 67 var g = document.getElementById("g"); |
| 68 var c = document.getElementById("c"); | |
| 69 var tfm = g.transform.baseVal.getItem(0); | |
| 70 var mtx = tfm.matrix; | |
| 71 mtx.a = 2; | |
| 72 if(tfm.type == SVGTransform.SVG_TRANSFORM_MATRIX) | |
| 73 { | |
| 74 passed = true; | |
| 75 } | |
| 70 } | 76 } |
| 71 } | 77 catch(e) {} |
| 72 catch(e) {} | 78 |
| 73 | 79 if(passed) |
| 74 if(passed) | 80 { |
| 75 { | 81 c.setAttribute("fill", "lime"); |
| 76 c.setAttribute("fill", "lime"); | 82 } |
| 77 } | 83 else |
| 78 else | 84 { |
| 79 { | 85 c.setAttribute("fill", "red"); |
| 80 c.setAttribute("fill", "red"); | 86 } |
| 81 } | 87 }, true); |
| 82 ]]></script> | 88 ]]></script> |
| 83 | 89 |
| 84 </g> | 90 </g> |
| 85 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> | 91 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 86 <text id="revision" x="10" y="340" stroke="none" | 92 <text id="revision" x="10" y="340" stroke="none" |
| 87 fill="black">$Revision: 1.7 $</text> | 93 fill="black">$Revision: 1.7 $</text> |
| 88 </g> | 94 </g> |
| 89 <rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" str oke="#000"/> | 95 <rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" str oke="#000"/> |
| 90 <!-- comment out this watermark once the test is approved --><!-- | 96 <!-- comment out this watermark once the test is approved --><!-- |
| 91 <g id="draft-watermark"> | 97 <g id="draft-watermark"> |
| 92 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-w idth="1"/> | 98 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-w idth="1"/> |
| 93 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size ="20" x="240" | 99 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size ="20" x="240" |
| 94 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white" >DRAFT</text> | 100 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white" >DRAFT</text> |
| 95 </g>--> | 101 </g>--> |
| 96 </svg> | 102 </svg> |
| OLD | NEW |