Adds a layout and style first pass.