Fix for ScrollableArea pre-finalizer CHECK failure
PaintLayer holds a persistent pointer to PaintLayerScrollableArea, so it's guaranteed that the PaintLayer will be destructed before the PLSA pre-finalizer is called. PLSA::Dispose is called by the PaintLayer destructor to clean up state, and this is the appropriate time to run complex finalizer code such as RunScrollCompleteCallbacks. The other ScrollableArea sub-classes are RootFrameViewport and VisualViewport. They only get destructed when the entire page is being torn down, in which case it's pointless to try and run scroll complete callbacks; so remove that code path for those classes. BUG=983809 R=omerkatz@chromium.org,pdr@chromium.org Change-Id: I28bee057db042ba92bacea62aeeae130b7594fdb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713593Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Stefan Zager <szager@chromium.org> Cr-Commit-Position: refs/heads/master@{#680633}
Showing
Please register or sign in to comment