DescriptionRemove ClearSelection() from Layout{BlockFlow,Inline}::WillbeDestroyed()
LayoutView::ClearSelection was originally introduced at 2004 to assure no
crash:
https://chromium.googlesource.com/chromium/src/+/10f7ac6ea6784e33161c7979e9a59c5e2cae14b5
Even now that code doesn't make sense because we update LayoutSelection after
layout in following sequence:
1. FrameView::PerformPostLayoutTasks() checks
LayoutSelection::SetHasPendingSelection()
2. PaintLayerCompositor::UpdateIfNeededRecursiveInternal() calls
LayoutSelection::Commit() and it updates layout selection.
BUG=708453
Review-Url: https://codereview.chromium.org/2811333003
Cr-Commit-Position: refs/heads/master@{#464352}
Committed: https://chromium.googlesource.com/chromium/src/+/230b4e0eb7f14d23c70bc4134b8a23a9ddccd5a8
Patch Set 1 #
Messages
Total messages: 16 (10 generated)
|