function layoutNode (root) {
  var rootNode = createNode(root);
  computeLayout(rootNode);
  walkNode(rootNode);
  return rootNode;
}
This computes the CSS layout for a RenderLayer tree and mutates the frame
objects at each node.

@param {Renderlayer} root
@return {Object}