layout: Promote absolute positioning, floatedness, and clearance into flags to avoid virtual calls.

These were showing up really high in the maze solver profile.

r? @glennw