layout/svg/crashtests/361587-1.svg

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <svg xmlns="http://www.w3.org/2000/svg" 
     2      onload="setTimeout(boom, 30);"
     3      class="reftest-wait">
     5 <script style="display: none" type="text/javascript">
     6 <![CDATA[
     8 function boom()
     9 {
    10   var oldGrad = document.getElementById("grad");
    11   oldGrad.parentNode.removeChild(oldGrad);
    13   var newGrad = document.createElementNS("http://www.w3.org/2000/svg", "radialGradient");
    14   newGrad.setAttribute("gradientUnits", "userSpaceOnUse");
    15   newGrad.setAttribute("id", "grad"); 
    17   document.documentElement.appendChild(newGrad);
    19   document.documentElement.removeAttribute("class");
    20 }
    22 ]]>
    23 </script>
    25 		<radialGradient id="grad" gradientUnits="userSpaceOnUse" cx="240" cy="210" r="220" fx="240" fy="210">
    26 			<stop stop-color="yellow" offset="0"/>
    27 			<stop stop-color="green"  offset="1"/>
    28 		</radialGradient>
    29 		<rect x="20" y="150" width="440" height="80" fill="url(#grad)" stroke-width="40"/>
    31 </svg>

mercurial