Hoist active document check from UpdateAnimationsAndScheduleFrameIfNeeded
We should aim to have these checks around the API "border" and then prevent certain actions when it is true (like scheduling frames). This hoists the check in UpdateAnimationsAndScheduleFrameIfNeeded(...) out into its callers adds TODOs where it seems we shouldn't need to check (per the previous sentence). Bug: 998526 Change-Id: I782a41033c33dba38b4923e96e84531858675c0c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827422Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#700391}
Showing
Please register or sign in to comment