layout: Make log attrs settable
This lets users tailor line-breaking decisions and segmentation by setting changed log attrs on the layout.
The first commit in this series could actually be a nice performance win, since it makes us recompute log attrs less often.
Edited by Matthias Clasen