Fix RenderWidget's WebWidget references.
RenderWidget holds onto a WebWidget. It has two methods GetFrameWidget() and GetWebWidget() which should both just reference the WebWidget. Instead, RenderWidget will [inappropriately] call out to its delegate to get the FrameWebWidget, which the WebWidget should already be. This induces confusion. This CL fixes the RenderWidget's webwidget_internal_ to always be a WebFrameWidget when the RenderWidget is associated with a RenderView. This changes the semantics, as we will never pass a WebViewImpl as a RenderWidget's webwidget_internal_. This has one main side effect -- a remote main frame's RenderWidget will now have a null WebWidget. Change-Id: I930a9c91a88ac05882289df795ed1c4008e146fd Bug: 995981, 419087 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766889Reviewed-by:Daniel Cheng <dcheng@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Erik Chen <erikchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#690968}
Showing
Please register or sign in to comment