Add a dirty bit to CounterStyle to indicate style & layout invalidation
This patch introduces a dirty bit to CounterStyle to indicate whether the information is stale. In general, a CounterStyle is dirtied if its underlying @counter-style rule has changed, or if any other @counter-style rule that it can reach via the 'extends' and 'fallback' references have changed. A dirtied CounterStyle will be removed or replaced in the corresponding CounterStyleMap. The overall process is very similar to how FontFallbackList is dirtied when @font-face rules or loading status are changed. This dirty bit allows partial invalidation of style and layout after @counter-style rule changes. A follow-up patch will implement such partial invalidation. Bug: 687225 Change-Id: I950af0b76381bfdb88adcb5a4ce38ca990e6b6cc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2641157Reviewed-by:Nektarios Paisios <nektar@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Aaron Leventhal <aleventhal@chromium.org> Reviewed-by:
Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#845900}
Showing
Please register or sign in to comment