function setSize(element, size) {
  var style = element.style;
  style.width = px(size.width);
  style.height = px(size.height);
}
Sets the width and height style attributes to the given size.

@param {Element} element  The dom element to manipulate.
@param {Size} size  The desired size.