DescriptionInvalidate properties registered as non-inherited for custom paint
This patch fixes custom paint invalidation for properties registered as
non-inherited. To avoid plumbing the property registry around more, we
check both the StyleInheritedVariables and StyleNonInheritedVariables
to get a custom property's value.
The invalidation for registered properties is not 100% precise as we
compare the token stream values instead of parsed values, so a value
could change representation (e.g. 160px to 10em) without a change in
computation value and we would still invalidate.
We also fail to invalidate when a property is registered. This could
result in a computed value being set to the initial value. Alternatively
the value could remain the same but registration could cause the value
returned in the FilteredComputedStylePropertyMap to no longer be an
unparsed value.
BUG=641877
Committed: https://crrev.com/656fac63623b571cf135de0f5fe0e904f984b26a
Cr-Commit-Position: refs/heads/master@{#426421}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 14 (7 generated)
|