The baseline of widget_order_perf kept the selection's editable objects and
then asked each widget about the whole selection in the same document, so a
widget that checks editability itself (corners of any path on 128 rectangles
on a locked artboard) measured each object twice. The baseline now asks the
widget about the kept objects in a copy of the document with everything
editable, as the_widgets_are_the_same_as_when_editability_came_first does.
The type, pie, side count and corner widgets, the Objects on Path, Mirror,
Grid and Radial Repeat controls, the Image Trace Split divider and the
center point now check that a selected object is of a kind that has the
widget before asking whether it is editable. With an artboard locked, the
editability check measures the art of the layer object holding the object,
so a large selected group of another kind was measured on every repaint and
pointer move. The widgets shown are the same.
A test-only counter (vectorcraft-doc feature locked-artboard-count) counts
those measurements; widget_order_tests checks that objects of other kinds
are not measured, compares every widget with the editability-first result
on a mixed document, and holds an ignored timing test, widget_order_perf.