layout: Actually calculate restyle damage while styling.

...oops. Looks like I forgot to do this.

r? @pcwalton
Shouldn't the damage propagation phase do this instead?