Fix link highlight crash
Previously we updated fragments of link highlights during paint, and called LocalFrameView::SetForeignLayerListNeedsUpdate() when we had less fragments than before, but SetForeignLayerListNeedsUpdate() should be called before paint because it deletes paint controller. Now separate the work into a new step LinkHighlightImpl::UpdateAfterPrePaint() to update the link highlight fragments and call SetForeignLayerListNeedsUpdate() when the number of fragments changes. Bug: 1021470 Change-Id: I4d81a522844e957aebcb406fb36044297872ab55 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899317Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#712809}
Showing
Please register or sign in to comment