[BlinkGenPropertyTrees] SVG animations should not reset layer invalidations
When an SVG image has animations, SVGImage::ServiceAnimations is called which updates animations via DocumentAnimations::UpdateAnimations. For blink generated property trees (BGPT), this is done during paint (see: LocalFrameView::RunPaintLifecyclePhase) and, because paint is skipped when updating svg image animations, it must be explicitly invoked for svg animations. (For non-BGPT, this is done as part of the compositing step which precedes paint). Updating animations may invalidate the SVG image's paint layers. Before this patch, the paint layer invalidations were cleared which caused the later svg image paint to incorrectly use stale paint data. Bug: 884240 Cq-Include-Trybots: luci.chromium.try:linux-blink-gen-property-trees;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: If21335672f55db0b937505c6475f55def0be14ac Reviewed-on: https://chromium-review.googlesource.com/c/1261718Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#596760}
Showing
Please register or sign in to comment