[Refactor] Consolidate updates during RenderWidget::DidNavigate
During a load of the main frame, both the RenderWidget and its owned LayerTreeHost, need to be told that there was a navigation. It used to be that the RenderFrameImpl would notify the RenderWidget then reach into the RenderWidget for a reference to the owned LayerTreeHost and signal it too. This violates the "tell, don't get" principle; it makes more sense for the RenderWidget to forward its signal to the LayerTreeHost than to require calling code to know to update the LayerTreeHost. This CL changes the RenderWidget to forward the 'DidNavigate' signal to its LayerTreeHost and simplifies the neighbouring interfaces. Change-Id: I6050f70a194e7030041d56556ddce5f92c3e2deb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2002724Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Tom McKee <tommckee@chromium.org> Cr-Commit-Position: refs/heads/master@{#733368}
Showing
Please register or sign in to comment