Web Animations: use WTF::Optional for StartAnimationOnCompositor's start_time
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: Ice80a1d3d686b0ff1f0bc2a1f3eac2eff51a8e38 Reviewed-on: https://chromium-review.googlesource.com/981076Reviewed-by:Robert Flack <flackr@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#546145}
Showing
Please register or sign in to comment