layout: Actually calculate restyle damage while styling.

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

r? @pcwalton