[scroll-animations] Don't store a CSSPropertyValueSet on the style rule
Instead of storing a CSSPropertyValueSet, and then calling GetPropertyCSSValue on-demand, dig out all the CSSValues during construction of the StyleRuleScrollTimeline object. The reason for this is somewhat dull: if a unit test disables the CSSScrollTimeline runtime flag, and *then* tries to access some descriptor using GetPropertyCSSValue, we hit a DCHECK because the descriptor is (no longer) web-exposed. It would have been possible to avoid accessing the StyleRuleScroll- Timeline while the flag is disabled some other way (per test), but it's easier to just allow it in general. Added a bonus unit test for Copy(), since this CL changes how that works. Bug: 1074052 Change-Id: Id59cac2d1e81ea07f1d63a8e1bcdbc10ac55a122 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2351921Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#797602}
Showing
Please register or sign in to comment