dom/xbl/crashtests/406900-1.xul
author James Kolb <jck1089@gmail.com>
Mon, 13 Jan 2014 13:29:48 +1300
changeset 163085 a956cec79aadb296926c3264cc301405dec75c73
parent 163082 243259fda9aba5900ae1492c991a0e7a541a584d
child 474564 8b074e2a3b68a339928e5b9f1d52f712e4bfce44
permissions -rw-r--r--
Bug 603488 part 3: Modified DrawTargetSkia to accept non-skia sourcesurfaces. r=nrc

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="boom();">

<bindings xmlns="http://www.mozilla.org/xbl">
  <binding id="lit">
    <content>
      <children>
        <xul:hbox/>
      </children>
    </content>
  </binding>
</bindings>

<script type="text/javascript"> 

function boom()
{
  var x = document.getElementById("x");
  var anon = document.getAnonymousNodes(x)[0];
  document.documentElement.removeChild(x);
  document.documentElement.appendChild(x);
  var hbox = document.createElement('hbox');
  anon.appendChild(hbox);
}

</script>

<hbox id="x" style="-moz-binding: url(#lit)" />

</window>