Add CSSPropertyIDList to simplify looping over CSS property IDs
This change allows to change the loop: for (int id = kIntFirstCSSProperty; id <= kIntLastCSSProperty; ++id) CSSPropertyID property_id = static_cast<CSSPropertyID>(id); for the simpler: for (CSSPropertyID property_id : CSSPropertyIDList()) Additionally, remove unneeded static casts from kCSSPropertyAliasList. Bug: 936369 Change-Id: I4ebcd57cce26d2021da04f9f02e0dbca7a3c4585 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1538287Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com> Cr-Commit-Position: refs/heads/master@{#644741}
Showing
Please register or sign in to comment