Split "ordinal value" logic from LayoutListItem
This patch splits the "ordinal value" logic[1] to a separate class, ListItemOridinal, so that we can re-use the logic in LayoutNG. The logic is mostly DOM operations that moving them out of layout is reasonable from the layering perspective too. It still relies on layout tree to provide the storage, and events for insertions and deletions, since any elements with 'display: list-item' can be list items. [1] https://html.spec.whatwg.org/multipage/grouping-content.html#ordinal-value Bug: 591099 Change-Id: Ia61ee764db83203ac8a4006cbab534b5ccf56606 Reviewed-on: https://chromium-review.googlesource.com/678415 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#504338}
Showing
This diff is collapsed.
Please register or sign in to comment