Fix a null pointer for layer_tree_host on ScheduleAnimation callback.
Calling WebWidget::Close could end up calling ScheduleAnimation back but layer_tree_host_ would be null. Destroying the WidgetBase (which owns the LayerTreeHost) is the last thing that WebWidget::Close does so it is safe to move the assignment after the close. The long term fix here is to remove the layer_tree_host_ pointer from RenderWidget entirely but those patches are yet complete. BUG=1072927 Change-Id: I9d49f7c0f47c69bb8c5e300235bf355ae2cfec1f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2159745Reviewed-by:Avi Drissman <avi@chromium.org> Reviewed-by:
danakj <danakj@chromium.org> Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/master@{#761165}
Showing
Please register or sign in to comment