[css-logical] Fix perf regression in cssom "set a CSS declaration"
r834202 changed MutableCSSPropertyValueSet::SetProperty so that, when changing the value of a property that belongs to a logical property group, which is followed by a property in the same logical property group but opposite mapping logic, the changed property is moved to the end, to ensure it takes precedence. However, this regressed the CSSPropertyUpdateValue perf test. This patch adds a may_have_logical_properties_ flag. When false, it means the MutableCSSPropertyValueSet has no logical property, so we can skip the extra work added in r834202. Bug: 1156321 Change-Id: I4ab6d92cf51126bcab16ffa9635bf91c98d6f738 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2640097Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Commit-Queue: Oriol Brufau <obrufau@igalia.com> Cr-Commit-Position: refs/heads/master@{#846231}
Showing
Please register or sign in to comment