addon/utils/nf/svg-dom.js
function inlineAllStyles(element) {
  let styles = getComputedStyle(element);
  for(let key in styles) {
    if(styles.hasOwnProperty(key)) {
      element.style[key] = styles[key];
    }
  }

  for(let i = 0; i < element.childNodes.length; i++) {
    let node = element.childNodes[i];
    if(node.nodeType === 1) {
      inlineAllStyles(node);
    }
  }
}
function inlineAllStyles(element) {
  let styles = getComputedStyle(element);
  for(let key in styles) {
    if(styles.hasOwnProperty(key)) {
      element.style[key] = styles[key];
    }
  }

  for(let i = 0; i < element.childNodes.length; i++) {
    let node = element.childNodes[i];
    if(node.nodeType === 1) {
      inlineAllStyles(node);
    }
  }
}
function inlineAllStyles ( element ) { let styles = getComputedStyle ( element ) ; for ( let key in styles ) { if ( styles . hasOwnProperty ( key ) ) { element . style [ key ] = styles [ key ] ; } } for ( let i = 0 ; i < element . childNodes . length ; i ++ ) { let node = element . childNodes [ i ] ; if ( node . nodeType === 1 ) { inlineAllStyles ( node ) ; } } }
Traverses an element and all of its descendants, setting their
inline style property to whatever the computed style is.
@method inlineAllStyles
@param element {Element} the dom element to traverse.
@private
Traverses an element and all of its descendants setting their inline style property to whatever the computed style is .