Handle 'revert' in StylePropertySerializer::CommonShorthandChecks
The 'initial', 'inherit' and 'unset' keywords were handled, but 'revert' was not. This caused crashes when trying to represent certain declaration block serializations using shorthands. Change to use IsCSSWideKeyword instead, which includes 'revert'. (It should also avoid the same problem the next time a new CSS-wide keyword is added). Bug: 1071454 Change-Id: I968a32a5ad5b2a1a1958f60ec19679c6a642df14 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2152817Reviewed-by:Yoav Weiss <yoavweiss@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#760310}
Showing
Please register or sign in to comment