Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" | |
| 2 width="300" height="300" onload="runRepaintAndPixelTest()"> | |
|
fs
2015/04/01 16:21:41
Should be no need to make a pixel test for this -
| |
| 3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" /> | |
|
fs
2015/04/01 16:21:41
If you put the test in an HTML wrapper you can dro
| |
| 4 <script><![CDATA[ | |
| 5 function repaintTest() { | |
| 6 var fe = document.getElementById("fe"); | |
| 7 fe.in1.baseVal = "SourceGraphic"; | |
| 8 } | |
| 9 ]]></script> | |
| 10 <linearGradient id="MyGradient" gradientUnits="userSpaceOnUse" x1="10" y1="0" x2 ="590" y2="0"> | |
|
fs
2015/04/01 16:21:41
There should be no need for a gradient here. Just
| |
| 11 <stop offset="0" stop-color="#00ff00"/> | |
| 12 <stop offset="1" stop-color="#000000"/> | |
| 13 </linearGradient> | |
| 14 <filter id="SourceGraphic" x="0%" y="0%" width="100%" height="100%"> | |
|
fs
2015/04/01 16:21:41
Just call it something simple like 'f' ('SourceGra
| |
| 15 <feComponentTransfer id="fe" in="SourceAlpha"> | |
| 16 <feFuncG type="gamma" amplitude="1" exponent="0.5" offset="0"/> | |
|
fs
2015/04/01 16:21:41
I think you could just use type="identity" here.
| |
| 17 </feComponentTransfer> | |
| 18 </filter> | |
| 19 <rect x="0" y="0" width="100" height="100" fill="url(#MyGradient)" filter="url(# SourceGraphic)"/> | |
|
fs
2015/04/01 16:21:41
Drop x="0" and y="0" (they're the default values)
| |
| 20 </svg> | |
| OLD | NEW |