Snapshot a pointer to the main frame when creating WebViewFrameWidget.
Otherwise, invoking WebViewFrameWidget::close() from frame swap will result in trying to clear the frame widget on the wrong main frame. Other miscellaneous fixes: - WebViewFrameWidget now uses smart pointers where appropriate for its members. - WebViewFrameWidget's ctor also takes a WebWidgetClient* pointer. This is future-proofing to help merge the widget implementations in WebFrameWidget and WebView. BUG=419087 Review URL: https://codereview.chromium.org/1310063002 git-svn-id: svn://svn.chromium.org/blink/trunk@201048 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment