Web Animations: use WTF::Optional for Keyframe::offset_
Previously nullable values in the animations code were tracked by storing nulls as quiet_NaN() and using std::isnan as a null-detector. It is much more explicit to store such values using WTF::Optional, which forces code to consider whether or not the offset exists. Bug: 791086 Change-Id: I4db0457b593d6be61dedb5c13a9daf8b671206b0 Reviewed-on: https://chromium-review.googlesource.com/804116Reviewed-by:Eric Willigers <ericwilligers@chromium.org> Reviewed-by:
Andrey Kosyakov <caseq@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#522021}
Showing
Please register or sign in to comment