Defer style changes when changing classes.

Because we don't know which style to apply until all selectors have
received notification of a class change.