• Kent Tamura's avatar
    css-lists: counter-* properties update should invalidate ListItemOrdinals · 1c61e650
    Kent Tamura authored
    Since r835809, list-items respect to counter-* properties, but we didn't
    invalidate list-items on updating the properties.
    
    LayoutCounter::LayoutObjectStyleChanged(), which is called whenever
    counter-* properties are changed, invalidates ListItemOrdinal too.
    
    * LayoutCounter::LayoutObjectStyleChanged() calls new function
      ListItemOrdinal::ItemCounterStyleUpdated()
    
    * ListItemOrdinal::ItemInsertedOrRemoved() is renamed to ItemUpdated(),
      and it adds support of inclusive invalidation.
    
    * ListItemOrdinal::ItemInsertedOrRemoved() and
      ItemCounterStyleUpdated() call ItemUpdated().
    
    * counter-set-002.html
     - Fix the flakiness
     - Add list-items before/after the updated node
    
    Bug: 1157854
    Change-Id: I669c2c70f87473d5d863f5f02208eb7fe1a41a55
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586455Reviewed-by: default avatarOriol Brufau <obrufau@igalia.com>
    Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
    Commit-Queue: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#836962}
    1c61e650
TestExpectations 504 KB