Use consistent logic to detect iframe compositing state
CompositingRequirementsUpdater is responsible for setting PaintLayerCompositor::compositing_, while GraphicsLayerTreeBuilder is responsible for attaching PaintLayerCompositor::RootGraphicsLayer() into the layer tree of its embedding document. The current code uses slightly different logic in those two places to determine whether an iframe is compositing, which may lead to inconsistent state when an iframe is throttled. This CL make them use the same logic. Bug: 1133662 Change-Id: I13276c0b0fb25921936d5319d4d983d720595557 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606654 Commit-Queue: Stefan Zager <szager@chromium.org> Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#839677}
Showing
Please register or sign in to comment