Refactor counter style updates
Currently, counter style updates is a phase in UpdateActiveStyles. This patch moves it out as a standalone phase of UpdateStyleAndLayoutTree, so that we update counter styles only when needed. This patch also adds MarkCounterStylesNeedUpdate() to indicate whether counter style updates are needed. Note: After refactoring, the framework of counter style updates looks almost identical to font updates. This is intentional. We will try to unify them in the future. Bug: 687225 Change-Id: If07de2878ae5faa6800644a967029a569bef566a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2639535Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#846203}
Showing
Please register or sign in to comment