ComputedStyle: Take into account of aliases in ranking data
Property aliases in css_properties_ranking.json5 were ignored while ComputedStyle generation. So, if an alias rank is higher than the rank of the corresponding real one, the generated field could be added to a deeper layer though the field is used frequently. This CL changes make_computed_style_base.py so that it takes into account of alias rankings. - Introduce _best_rank() to determine the best ranking value including aliases. - _evaluate_rare_non_inherited_group() and _evaluate_rare_inherit_group() use _best_rank() instead of properties_ranking[property_['name'].original] This change moves |backface_visibility_| to a shallower layer. This CL is a preparation to add 'appearance' property and make '-webkit-appearance' its alias. Bug: 963551 Change-Id: I120ee0aa250671ef8f86806ca653eb2cec63ba85 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2086468 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#747503}
Showing
Please register or sign in to comment