More layout reused after a script changes the page
A speed release for layout and strings. When a page's script changes something and asks where things are, the engine lays out again, and it now reuses more of the work it already did: a table header whose rows have no height gets a definite place, so the reuse no longer has to check each copy's starting geometry. Reading a string's length in a loop is faster, and a regular expression that starts with plain text finds it eight bytes at a time. Recorded real pages spend about 1% less time in script, style and layout than in 0.1.423, with no page slower.
Reusing measured layout
To size a flexible item, the engine lays out a copy of it first, then the item itself. The copy's layout is handed to the item when nothing about it changed. That hand-over used to also require the item to arrive with exactly the copy's starting geometry, which almost never held. Layout never reads that geometry once every box gets its own place, and an empty table header was the one box that did not: it now gets one, and the check is gone.