Don't ClearDistribution() until we update it.

With FlatTreeStyleRecalc we expect to traverse up the current flat tree
ancestor chain even when the distribution is marked dirty. Otherwise,
we will not be able to reach the style dirty nodes marked when we have
a dirty distribution.

Bug: 1023178
Change-Id: I2b80ad252bc17bb223a3caa9336526c9e2fb6387
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911208
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714855}
3 files changed