Commit b319cd5c authored by Xianzhu Wang's avatar Xianzhu Wang Committed by Commit Bot

Check GraphicsLayer::HasPaintState() when updating non-fast scrollable regions

This is similar to what we do in local_frame_view.cc when traversing
GraphicsLayers. The null paint state may be caused by throttling or
display lock.

Will follow up with a more complete solution.

Bug: 1110232
Change-Id: Idce2c3e2ff80932dd6d0b68db52fa33e2fb8973c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341251
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795562}
parent 78f33f72
...@@ -167,7 +167,7 @@ static void ForAllPaintingGraphicsLayers(GraphicsLayer& layer, ...@@ -167,7 +167,7 @@ static void ForAllPaintingGraphicsLayers(GraphicsLayer& layer,
return; return;
} }
if (layer.PaintsContentOrHitTest()) if (layer.PaintsContentOrHitTest() && layer.HasLayerState())
function(layer); function(layer);
for (auto* child : layer.Children()) for (auto* child : layer.Children())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment