Returns every ShapeNode in the tree — a depth-first, source-order traversal, so the resulting order is the paint order.
The tree to traverse.
The tree's leaves, each carrying its own style and tags.