Don't crash when a scrollbar layer has its ScrollableArea detached.
A blink::Scrollbar may have its ScrollableArea detached, but the layer remains in the layer tree, so it attempts to paint. In this case the layer does not need to paint and we can early out. It is not clear why PaintLayerScrollableArea::ScrollbarManager::DestroyScrollbar() happens but CompositedLayerMapping::UpdateOverflowControlsLayers() does not destroy and remove the layer from the tree. R=pdr@chromium.org Bug: 860499 Change-Id: I536ebb1258147c90f1f48d90d195a607230b715e Reviewed-on: https://chromium-review.googlesource.com/1132418Reviewed-by:Jianpeng Chao <chaopeng@chromium.org> Reviewed-by:
Stephen Chenney <schenney@chromium.org> Commit-Queue: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#575316}
Showing
Please register or sign in to comment