Pass containing block dimensions to layout()
Simplify DOM constructors