B2G/gecko/layout/reftests/svg/as-image/svg-image-util.js
// for its |src| attribute, and the given width & height values.
for its |src| attribute, and the given width & height values.
for its |src| attribute and the given width & height values .
function generateHostNode(aHostNodeTagName, aUri,
                          aHostNodeWidth, aHostNodeHeight) {
  var elem = document.createElement(aHostNodeTagName);
  elem.setAttribute("src", aUri);
  if (aHostNodeWidth) {
    elem.setAttribute("width", aHostNodeWidth);
  }
  if (aHostNodeHeight) {
    elem.setAttribute("height", aHostNodeHeight);
  }
  return elem;
}
function generateHostNode ( aHostNodeTagName , aUri , aHostNodeWidth , aHostNodeHeight ) { var elem = document . createElement ( aHostNodeTagName ) ; elem . setAttribute ( "src" , aUri ) ; if ( aHostNodeWidth ) { elem . setAttribute ( "width" , aHostNodeWidth ) ; } if ( aHostNodeHeight ) { elem . setAttribute ( "height" , aHostNodeHeight ) ; } return elem ; }
for its |src| attribute, and the given width & height values.
for its |src| attribute and the given width & height values .