Implement API for shorthand properties animation and transition.
This cl is a resubmission of an earlier cl (crrev.com/c/549675), which was reverted to fix a crash on one specific version of Google Pixel. The difference between this cl and the previous cl is in the implementation of CSSPropertyAnimationUtils::ConsumeAnimationShorthand: - The old version is a templated function that uses function callback and variable number of args. - The new version uses a function pointer, which is simpler than a callback. The original crash was not reproducible using the old patch. But it is probably better to use function pointers instead of a callback function with variable number of bugs. Have run this new patch on a pixel phone and there was not crash. Bug: 668012 Change-Id: I183df5f3a168fffbed253a8b47b177fa72cd06b4 Reviewed-on: https://chromium-review.googlesource.com/569505 Commit-Queue: Jia Meng <jiameng@chromium.org> Reviewed-by:Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#487372}
Showing
Please register or sign in to comment