commit | b56e2510d08c0a8fd0be69ad29a2558c6ce63523 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Fri Jun 29 18:05:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jun 29 18:05:14 2018 |
tree | d3ebd64f405af1d3d009a9cff49ec6718b15d11a | |
parent | cb5559bc75ff9845812406106cdb3646071c8fee [diff] |
Suspend SVG image animations when the page is hidden Check Document::hidden() in LayoutObject::WillRenderImage, thus pausing animations on pages that are not visible. To resume animations, we may need to explicitly resume the timeline, so a hook is added in Page::SetVisibilityState to allow calling StartAnimation() on the relevant SVGImages. Bug: 856082 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I4a0b008730ec3e6c2af26e15d52eebb26020ad32 Reviewed-on: https://chromium-review.googlesource.com/1115130 Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#571543}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .