CSS: Document Invalidate and do less work for slotted.
Invalidate is the core of the recursive invalidation algorithm, add some commentary to make it more obvious what is going on. In the process of writing the doc, I thought I found a bug in that we could underinvalidate with ::slotted when WholeSubtreeInvalid is true. However the style recalculation due to WholeSubtreeInvalid will ensure that even if we underinvalidate we will recalculate anyway. So we can ignore the slotted logic when WholeSubtreeInvalid is true. Change-Id: Ifbca3c5b52b66e0ef9da54d1e04888055d1748e9 Reviewed-on: https://chromium-review.googlesource.com/1090594 Commit-Queue: Fergal Daly <fergal@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#565966}
Showing
Please register or sign in to comment